C# 클래스 Microsoft.AspNetCore.Authentication.ActiveDirectory.AuthenticationStateCache

An in-memory cache for the login handshakes
파일 보기 프로젝트 열기: OneBitSoftware/Microsoft.AspNetCore.Authentication.ActiveDirectory

공개 메소드들

메소드 설명
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