Click or drag to resize

ManagedCancellationTokenSource Class

Implements a reference counter for CancellationTokenSource to provide thread safety around Dispose.
Inheritance Hierarchy
SystemObject
  GSF.ThreadingManagedCancellationTokenSource

Namespace: GSF.Threading
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.181-beta
Syntax
public sealed class ManagedCancellationTokenSource : IDisposable
View Source

The ManagedCancellationTokenSource type exposes the following members.

Constructors
 NameDescription
Public methodManagedCancellationTokenSource Creates a new instance of the ManagedCancellationTokenSource class.
Public methodManagedCancellationTokenSource(CancellationTokenSource) Creates a new instance of the ManagedCancellationTokenSource class.
Public methodManagedCancellationTokenSource(FuncCancellationTokenSource) Creates a new instance of the ManagedCancellationTokenSource class.
Top
Methods
 NameDescription
Public methodDispose Cancels the underlying CancellationTokenSource and schedules it for disposal.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodRetrieveToken Retrieves the CancellationToken used to check the state of cancellation.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also