DefaultUserProvider constructor
Default implementation of IUserProvider that delegates to an IUserAccessor, IUserClaimCreator, and IUserRetrieveService.
public DefaultUserProvider(IUserAccessor userAccessor, IUserClaimCreator userClaimCreator,
IUserRetrieveService userRetriever, ITwoLevelCache? cache = null)
| parameter | description |
|---|---|
| userAccessor | The accessor that provides the current user principal. |
| userClaimCreator | The service used to create principals for impersonation. |
| userRetriever | The service used to retrieve user definitions. |
| cache | The two-level cache used for fallback invalidation when the retrieve service does not implement IRemoveCachedUser. Optional. |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException | userAccessor, userClaimCreator or userRetriever is null. |
Remarks
Creates a new instance of the DefaultUserProvider class.
See Also
- interface IUserAccessor
- interface IUserClaimCreator
- interface IUserRetrieveService
- interface ITwoLevelCache
- class DefaultUserProvider