IInterruptionTokenSource

IInterruptionTokenSource 接口

表示 IInterruptionToken 的来源。

public interface IInterruptionTokenSource

属性

名称描述
IsInterruptionRequested { get; }如果请求中断,则返回 true,反之返回 false。
Token { get; }返回绑定到此 IInterruptionTokenSource 的新令牌。

方法

名称描述
Interrupt()初始化中断请求。

另请参阅