C# Class Microsoft.AspNet.SignalR.Infrastructure.SafeCancellationTokenSource

Thread safe cancellation token source. Allows the following: - Cancel will no-op if the token is disposed. - Dispose may be called after Cancel.
Inheritance: IDisposable
Exibir arquivo Open project: SignalR/SignalR Class Usage Examples

Public Methods

Method Description
Cancel ( bool useNewThread = true ) : void
Dispose ( ) : void
SafeCancellationTokenSource ( ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
CancelCore ( ) : void

Method Details

Cancel() public method

public Cancel ( bool useNewThread = true ) : void
useNewThread bool
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

SafeCancellationTokenSource() public method

public SafeCancellationTokenSource ( ) : System
return System