MtBaseComponentCancellationToken Property

Cancellation token for the component; this can be used for asynchronous operations on the components, to shut them down if the component has ended its lifetime.

Definition

Namespace: MobileTrack.Web.Components.Views
Assembly: MobileTrack.Web.Components (in MobileTrack.Web.Components.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
protected CancellationTokenSource CancellationToken { get; }

Property Value

CancellationTokenSource

Example

C#
await Foo(cancellationToken: CancellationToken.Token).ConfigureAwait(false);

See Also