IAsyncState 인터페이스

정의

변수의 비동기 흐름 AsyncLocal<T> 내의 모든 정보를 캡슐화합니다. 이 인터페이스의 일부 구현은 스레드로부터 안전하지 않을 수 있습니다.

public interface class IAsyncState
public interface IAsyncState
type IAsyncState = interface
Public Interface IAsyncState

메서드

Get(AsyncStateToken)

상태에서 저장된 비동기 컨텍스트를 가져옵니다.

Initialize()

현재 비동기 흐름에서 비동기 상태를 초기화합니다.

RegisterAsyncContext()

상태에 새 비동기 컨텍스트를 등록합니다.

Reset()

사용 후 비동기 상태를 다시 설정합니다.

Set(AsyncStateToken, Object)

비동기 컨텍스트를 저장합니다.

TryGet(AsyncStateToken, Object)

상태에서 저장된 비동기 컨텍스트를 가져옵니다.

적용 대상