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
取消令牌,在取消时,指示进程应立即完成。