AsyncCommandBaseCancellationToken Property

Gets or sets the cancellation token that can be used by the IAsyncCommandRunAsync method.

Definition

Namespace: Ookii.CommandLine.Commands
Assembly: Ookii.CommandLine (in Ookii.CommandLine.dll) Version: 4.2.0+a4d3631e4dcc0970081ed435288efdebc1325f83
C#
public CancellationToken CancellationToken { get; set; }

Property Value

CancellationToken
A CancellationToken instance, or CancellationTokenNone if none was set.

Implements

IAsyncCancelableCommandCancellationToken

Remarks

If a CancellationToken was passed to the CommandManagerRunCommandAsync(CancellationToken) method, this property will be set to that token prior to the IAsyncCommandRunAsync method being called.

See Also