C# Class System.Threading.CancellationTokenSource

Inheritance: IDisposable
Exibir arquivo Open project: runefs/Marvin Class Usage Examples

Private Properties

Property Type Description
GetTokenReg System.Threading.CancellationTokenRegistration
Register System.Threading.CancellationTokenRegistration
RemoveCallback void

Public Methods

Method Description
Cancel ( ) : void
Cancel ( bool throwOnFirst ) : void
CreateLinkedTokenSource ( ) : CancellationTokenSource
CreateLinkedTokenSource ( CancellationToken token1, CancellationToken token2 ) : CancellationTokenSource
Dispose ( ) : void

Private Methods

Method Description
GetTokenReg ( ) : System.Threading.CancellationTokenRegistration
Register ( System.Action callback, bool useSynchronizationContext ) : System.Threading.CancellationTokenRegistration
RemoveCallback ( System.Threading.CancellationTokenRegistration tokenReg ) : void

Method Details

Cancel() public method

public Cancel ( ) : void
return void

Cancel() public method

public Cancel ( bool throwOnFirst ) : void
throwOnFirst bool
return void

CreateLinkedTokenSource() public static method

public static CreateLinkedTokenSource ( ) : CancellationTokenSource
return CancellationTokenSource

CreateLinkedTokenSource() public static method

public static CreateLinkedTokenSource ( CancellationToken token1, CancellationToken token2 ) : CancellationTokenSource
token1 CancellationToken
token2 CancellationToken
return CancellationTokenSource

Dispose() public method

public Dispose ( ) : void
return void