IAsyncState Interface

Definitie

Alle informatie in de asynchrone stroom in een AsyncLocal<T> variabele inkapselen. Sommige implementaties van deze interface zijn mogelijk niet thread-veilig.

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

Methoden

Name Description
Get(AsyncStateToken)

Hiermee haalt u de opgeslagen asynchrone context op uit de status.

Initialize()

Initialiseert de asynchrone status in de huidige asynchrone stroom.

RegisterAsyncContext()

Registreert nieuwe asynchrone context met de status.

Reset()

Hiermee wordt de asynchrone status na gebruik opnieuw ingesteld.

Set(AsyncStateToken, Object)

Slaat asynchrone context op.

TryGet(AsyncStateToken, Object)

Probeert de opgeslagen asynchrone context op te halen uit de status.

Van toepassing op