Class StopTokenKit
A kit that manages the lifecycle of a StopToken and its associated resources.
public class StopTokenKit : IDisposable
- Inheritance
-
StopTokenKit
- Implements
- Inherited Members
- Extension Methods
Constructors
StopTokenKit(CancellationToken)
Initializes a new instance of the StopTokenKit class.
public StopTokenKit(CancellationToken token)
Parameters
token
CancellationTokenThe cancellation token to register with.
Properties
StopTokenPtr
Gets the pointer to the native stop token.
public nint StopTokenPtr { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
protected virtual void Dispose(bool disposing)
Parameters
disposing
bool