Class ConsoleLifetimeTokenSource
Represents a token that becomes canceled if the console application is requested to stop.
Implements
Inherited Members
Namespace: DotNext.Hosting
Assembly: DotNext.dll
Syntax
public sealed class ConsoleLifetimeTokenSource : CancellationTokenSource, IDisposable
Constructors
View SourceConsoleLifetimeTokenSource()
Initializes a new lifetime token source.
Declaration
public ConsoleLifetimeTokenSource()
Properties
View SourceIsSupported
Gets a value indicating that ConsoleLifetimeTokenSource is supported.
Declaration
public static bool IsSupported { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceDispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |