C# 클래스 Tailspin.Surveys.TokenStorage.DistributedTokenCacheService

상속: TokenCacheService
파일 보기 프로젝트 열기: Azure-Samples/guidance-identity-management-for-multitenant-apps

공개 메소드들

메소드 설명
DistributedTokenCacheService ( IDistributedCache distributedCache, IHttpContextAccessor contextAccessor, ILoggerFactory loggerFactory, IDataProtectionProvider dataProtectionProvider ) : System

Initializes a new instance of Tailspin.Surveys.TokenStorage.DistributedTokenCacheService

GetCacheAsync ( ClaimsPrincipal claimsPrincipal ) : Task

Returns an instance of Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache.

메소드 상세

DistributedTokenCacheService() 공개 메소드

Initializes a new instance of Tailspin.Surveys.TokenStorage.DistributedTokenCacheService
public DistributedTokenCacheService ( IDistributedCache distributedCache, IHttpContextAccessor contextAccessor, ILoggerFactory loggerFactory, IDataProtectionProvider dataProtectionProvider ) : System
distributedCache IDistributedCache
contextAccessor IHttpContextAccessor An instance of used to get access to the current HTTP context.
loggerFactory ILoggerFactory used to create type-specific instances.
dataProtectionProvider IDataProtectionProvider An for creating a data protector.
리턴 System

GetCacheAsync() 공개 메소드

Returns an instance of Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache.
public GetCacheAsync ( ClaimsPrincipal claimsPrincipal ) : Task
claimsPrincipal System.Security.Claims.ClaimsPrincipal Current user's .
리턴 Task