Skip to content

IUserProvider interface

namespace: Serenity.Abstractions   assemblySerenity.Net.Core

Combines user access, retrieval, claim creation, impersonation, and cache invalidation into a single abstraction.

public interface IUserProvider : IImpersonator, IRemoveAll, IRemoveCachedUser, IUserAccessor, 
    IUserClaimCreator, IUserRetrieveService

Remarks

Although DefaultUserProvider implements IImpersonator, its impersonation methods may throw InvalidOperationException when the underlying IUserAccessor does not implement IImpersonator.

See Also