Partajați prin


IAsyncState.RegisterAsyncContext Method

Definition

Registers new async context with the state.

public:
 Microsoft::Extensions::AsyncState::AsyncStateToken RegisterAsyncContext();
public Microsoft.Extensions.AsyncState.AsyncStateToken RegisterAsyncContext ();
abstract member RegisterAsyncContext : unit -> Microsoft.Extensions.AsyncState.AsyncStateToken
Public Function RegisterAsyncContext () As AsyncStateToken

Returns

Token that gives access to the reserved context.

Applies to