GrainContextExtensions.DeactivateAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
DeactivateAsync(IGrainContext, DeactivationReason, Nullable<CancellationToken>) |
停用提供的粒紋。 |
DeactivateAsync(IGrainContext, DeactivationReason, CancellationToken) |
停用提供的粒紋。 |
DeactivateAsync(IGrainContext, DeactivationReason, Nullable<CancellationToken>)
停用提供的粒紋。
public static System.Threading.Tasks.Task DeactivateAsync (this Orleans.Runtime.IGrainContext grainContext, Orleans.DeactivationReason deactivationReason, System.Threading.CancellationToken? cancellationToken = default);
static member DeactivateAsync : Orleans.Runtime.IGrainContext * Orleans.DeactivationReason * Nullable<System.Threading.CancellationToken> -> System.Threading.Tasks.Task
<Extension()>
Public Function DeactivateAsync (grainContext As IGrainContext, deactivationReason As DeactivationReason, Optional cancellationToken As Nullable(Of CancellationToken) = Nothing) As Task
參數
- grainContext
- IGrainContext
粒紋內容。
- deactivationReason
- DeactivationReason
停用原因。
- cancellationToken
- Nullable<CancellationToken>
取消時取消的標記,表示進程應該會立即完成。
傳回
一個 Task,會在粒紋停用後完成。
適用於
DeactivateAsync(IGrainContext, DeactivationReason, CancellationToken)
停用提供的粒紋。
public static System.Threading.Tasks.Task DeactivateAsync (this Orleans.Runtime.IGrainContext grainContext, Orleans.DeactivationReason deactivationReason, System.Threading.CancellationToken cancellationToken = default);
static member DeactivateAsync : Orleans.Runtime.IGrainContext * Orleans.DeactivationReason * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function DeactivateAsync (grainContext As IGrainContext, deactivationReason As DeactivationReason, Optional cancellationToken As CancellationToken = Nothing) As Task
參數
- grainContext
- IGrainContext
粒紋內容。
- deactivationReason
- DeactivationReason
停用原因。
- cancellationToken
- CancellationToken
取消時取消的標記,表示進程應該會立即完成。
傳回
一個 Task,會在粒紋停用後完成。