IGrainContext.Deactivate 方法

定义

重载

Deactivate(DeactivationReason, Nullable<CancellationToken>)

开始停用此实例。

Deactivate(DeactivationReason, CancellationToken)

开始停用此实例。

Deactivate(DeactivationReason, Nullable<CancellationToken>)

开始停用此实例。

public void Deactivate (Orleans.DeactivationReason deactivationReason, System.Threading.CancellationToken? cancellationToken = default);
abstract member Deactivate : Orleans.DeactivationReason * Nullable<System.Threading.CancellationToken> -> unit
Public Sub Deactivate (deactivationReason As DeactivationReason, Optional cancellationToken As Nullable(Of CancellationToken) = Nothing)

参数

deactivationReason
DeactivationReason

出于信息性目的停用的原因。

cancellationToken
Nullable<CancellationToken>

取消令牌,在取消时,指示进程应立即完成。

适用于

Deactivate(DeactivationReason, CancellationToken)

开始停用此实例。

public void Deactivate (Orleans.DeactivationReason deactivationReason, System.Threading.CancellationToken cancellationToken = default);
abstract member Deactivate : Orleans.DeactivationReason * System.Threading.CancellationToken -> unit
Public Sub Deactivate (deactivationReason As DeactivationReason, Optional cancellationToken As CancellationToken = Nothing)

参数

deactivationReason
DeactivationReason

出于信息性目的停用的原因。

cancellationToken
CancellationToken

取消令牌,在取消时,指示进程应立即完成。

适用于