IAsyncState.RegisterAsyncContext 方法

定义

向 状态注册新的异步上下文。

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

返回

授予对保留上下文的访问权限的令牌。

适用于