Skip to content

ImpersonatingUserAccessor constructor

Wraps an IUserAccessor and adds support for temporary user impersonation.

public ImpersonatingUserAccessor(IUserAccessor userContext, IHttpContextItemsAccessor itemsAccessor)
parameter description
userContext The underlying user accessor to delegate to when no impersonation is active.
itemsAccessor The accessor that provides the per-request item dictionary used to store the impersonation stack.

Remarks

Initializes a new instance of the ImpersonatingUserAccessor class that wraps the specified user accessor and adds impersonation support.

See Also