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

상속: Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache
파일 보기 프로젝트 열기: Azure-Samples/guidance-identity-management-for-multitenant-apps 1 사용 예제들

공개 메소드들

메소드 설명
AfterAccessNotification ( Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCacheNotificationArgs args ) : void

Handles the AfterAccessNotification event, which is triggered right after ADAL accesses the cache.

DistributedTokenCache ( ClaimsPrincipal claimsPrincipal, IDistributedCache distributedCache, ILoggerFactory loggerFactory, IDataProtectionProvider dataProtectionProvider ) : System

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

비공개 메소드들

메소드 설명
BuildCacheKey ( ClaimsPrincipal claimsPrincipal ) : string

Builds the cache key to use for this item in the distributed cache.

LoadFromCache ( ) : void

Attempts to load tokens from distributed cache.

메소드 상세

AfterAccessNotification() 공개 메소드

Handles the AfterAccessNotification event, which is triggered right after ADAL accesses the cache.
public AfterAccessNotification ( Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCacheNotificationArgs args ) : void
args Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCacheNotificationArgs An instance of containing information for this event.
리턴 void

DistributedTokenCache() 공개 메소드

Initializes a new instance of Tailspin.Surveys.TokenStorage.DistributedTokenCache
public DistributedTokenCache ( ClaimsPrincipal claimsPrincipal, IDistributedCache distributedCache, ILoggerFactory loggerFactory, IDataProtectionProvider dataProtectionProvider ) : System
claimsPrincipal System.Security.Claims.ClaimsPrincipal A for the signed in user
distributedCache IDistributedCache An implementation of in which to store the access tokens.
loggerFactory ILoggerFactory used to create type-specific instances.
dataProtectionProvider IDataProtectionProvider An for creating a data protector.
리턴 System