Table of Contents

Class CachedUserProviderBase<TUser>

Namespace
Innova.Rest.Server.Security
Assembly
Innova.Rest.Server.dll
public class CachedUserProviderBase<TUser> : IUserProvider where TUser : class, ICurrentUser, new()

Type Parameters

TUser
Inheritance
CachedUserProviderBase<TUser>
Implements

Constructors

CachedUserProviderBase(IHttpContextAccessor, IMemoryCache, IOptions<UserCacheOptions>)

Methods

GetCurrentUser()

Gets the current user.

GetCurrentUserAsync()

Asynchronously gets the current user.

GetCurrentUserFromStore(ClaimsPrincipal)

Gets the current user from store to be put in the cache. Thread safe.