GrainCancellationTokenSource Class

Definition

An analogue to CancellationTokenSource which can be sent between grains.

public sealed class GrainCancellationTokenSource : IDisposable
type GrainCancellationTokenSource = class
    interface IDisposable
Public NotInheritable Class GrainCancellationTokenSource
Implements IDisposable
Inheritance
GrainCancellationTokenSource
Implements

Constructors

GrainCancellationTokenSource()

Initializes the GrainCancellationTokenSource.

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