System.Threading.CancellationTokenSource
Signals to a CancellationToken that it should be canceled.
Gets whether cancellation has been requested for this CancellationTokenSourceCancellationTokenSource.
Gets the CancellationTokenCancellationToken
associated with this CancellationTokenSource.
public CancellationTokenSource()
Initializes the CancellationTokenSource.
public static CancellationTokenSource CreateLinkedTokenSource(CancellationToken token1, CancellationToken token2)
Creates a CancellationTokenSourceCancellationTokenSource that will be in the canceled state
when any of the source tokens are in the canceled state.
Creates a CancellationTokenSourceCancellationTokenSource that will be in the canceled state
when any of the source tokens are in the canceled state.
Communicates a request for cancellation.
Communicates a request for cancellation.
Releases the resources used by this CancellationTokenSource.