Edit

Share via


GrainCancellationTokenSource Class

Definition

An analogue to CancellationTokenSource which can be sent between grains.

C#
public sealed class GrainCancellationTokenSource : IDisposable
Inheritance
GrainCancellationTokenSource
Implements

Constructors

Properties

IsCancellationRequested

Gets a value indicating whether cancellation has been requested.

Token

Gets the CancellationToken associated with this GrainCancellationTokenSource.

Methods

Cancel()

Communicates a request for cancellation.

Dispose()

Releases the resources used by this Orleans.Async.GrainCancellationTokenSource.

Applies to

Product Versions
.NET Orleans 1.5.10, 3.4.5, 3.6.0, 7.0.0, 8.0.0, 8.1.0, 8.2.0, 9.0.0