IOptionsMonitorCache<TOptions> 인터페이스

정의

IOptionsMonitor<TOptions> 인스턴스를 캐시 TOptions 하는 데 사용됩니다.

generic <typename TOptions>
 where TOptions : classpublic interface class IOptionsMonitorCache
public interface IOptionsMonitorCache<TOptions> where TOptions : class
type IOptionsMonitorCache<'Options (requires 'Options : null)> = interface
Public Interface IOptionsMonitorCache(Of TOptions)

형식 매개 변수

TOptions

요청되는 옵션의 유형입니다.

파생

메서드

Name Description
Clear()

캐시에서 모든 옵션 인스턴스를 지웁니다.

GetOrAdd(String, Func<TOptions>)

명명된 옵션 인스턴스를 가져오거나 createOptions.

TryAdd(String, TOptions)

캐시에 새 옵션을 추가하려고 시도합니다.

TryRemove(String)

옵션 인스턴스를 제거하려고 시도합니다.

적용 대상