Class ConsoleLifetimeTokenSource
Represents a token that becomes canceled if the console application is requested to stop.
Implements
Inherited Members
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public sealed class ConsoleLifetimeTokenSource : CancellationTokenSource, IDisposable
Constructors
| Edit this page View SourceConsoleLifetimeTokenSource()
Initializes a new lifetime token source.
Declaration
public ConsoleLifetimeTokenSource()
Methods
| Edit this page View SourceDispose(bool)
Releases the unmanaged resources used by the CancellationTokenSource class and optionally releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |