C# Класс Microsoft.AspNetCore.Authentication.ActiveDirectory.AuthenticationStateCache

An in-memory cache for the login handshakes
Показать файл Открыть проект

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

Метод Описание
Add ( string key, HandshakeState state ) : void

Add a new state to the cache

Add ( string key, HandshakeState state, Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options ) : void

Add a new state to the cache and set a custom cache item policy

AuthenticationStateCache ( ) : System

Create an authentication state cache

TryGet ( string key, HandshakeState &state ) : bool

Try to get a state by its key

TryRemove ( string key ) : void

Remove a key

Приватные методы

Метод Описание
GetCacheEntryOptions ( int minutes ) : Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions

Gets a cache item policy.

Описание методов

Add() публичный Метод

Add a new state to the cache
public Add ( string key, HandshakeState state ) : void
key string
state HandshakeState
Результат void

Add() публичный Метод

Add a new state to the cache and set a custom cache item policy
public Add ( string key, HandshakeState state, Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options ) : void
key string
state HandshakeState
options Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions
Результат void

AuthenticationStateCache() публичный Метод

Create an authentication state cache
public AuthenticationStateCache ( ) : System
Результат System

TryGet() публичный Метод

Try to get a state by its key
public TryGet ( string key, HandshakeState &state ) : bool
key string
state HandshakeState
Результат bool

TryRemove() публичный Метод

Remove a key
public TryRemove ( string key ) : void
key string
Результат void