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,将在粒度停用后完成。

适用于