DefaultUserProvider constructor
namespace: Serenity.Services assembly: Serenity.Net.Core
Default implementation for IUserProvider which is a combination of IUserAccessor and IUserRetrieveService.
public DefaultUserProvider(IUserAccessor userAccessor, IUserClaimCreator userClaimCreator,
IUserRetrieveService userRetriever, ITwoLevelCache cache = null)
| parameter | description |
|---|---|
| userAccessor | User accessor |
| userClaimCreator | User claim creator |
| userRetriever | User retrieve service |
| cache | Optional cache for graceful invalidation if the IUserRetrieveService does not implement IUser |
Exceptions
| exception | condition |
|---|---|
| ArgumentNullException |
See Also
- interface IUserAccessor
- interface IUserClaimCreator
- interface IUserRetrieveService
- interface ITwoLevelCache
- class DefaultUserProvider