CancellationToken Class

Represents a token that can be used to cancel an asynchronous operation.

Definition

Namespace: Gemstone.Threading.Cancellation
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.166 -- Release Build+d3cb24a90fe44346300dfbb17444d7b350f42d79
public class CancellationToken : ICancellationToken
Inheritance
Object    CancellationToken
Implements
ICancellationToken

Constructors

CancellationTokenInitializes a new instance of the CancellationToken class

Properties

IsCancelled Gets a value that indicates whether the operation has been cancelled.

Methods

Cancel Cancels the operation.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

Cancelled Event that will be raised when this CancellationToken is cancelled.

Operators

(CancellationToken to CancellationToken) Implicitly converts a GSF cancellation token to an associated CancellationToken.
(CancellationToken to CancellationTokenSource) Implicitly converts a GSF cancellation token to an associated CancellationTokenSource.

Extension Methods

GetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
GetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)

See Also