SystemTarget.Deactivate 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
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
取消令牌,當取消時,表示進程應該會立即完成。