C# Class Microsoft.AspNetCore.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
Datei anzeigen Open project: FabianGosebrink/ASPNET-Core-Angular2-SignalR-Typescript 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