共用方式為


GrainContextExtensions.DeactivateAsync 方法

定義

多載

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,會在粒紋停用後完成。

適用於