共用方式為


SystemTarget.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
override this.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);
abstract member Deactivate : Orleans.DeactivationReason * System.Threading.CancellationToken -> unit
override this.Deactivate : Orleans.DeactivationReason * System.Threading.CancellationToken -> unit
Public Sub Deactivate (deactivationReason As DeactivationReason, cancellationToken As CancellationToken)

參數

deactivationReason
DeactivationReason

停用的原因,基於參考目的。

cancellationToken
CancellationToken

取消令牌,當取消時,表示進程應該會立即完成。

實作

適用於