C# Класс Tailspin.Surveys.TokenStorage.DistributedTokenCache

Наследование: Microsoft.IdentityModel.Clients.ActiveDirectory.TokenCache
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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