Method GetLinkedCancellationSource
GetLinkedCancellationSource(params CancellationToken[])
Creates a new CancellationTokenSource that is linked to the provided cancellation tokens and the dispose cancellation token of this instance.
public CancellationTokenSource GetLinkedCancellationSource(params CancellationToken[] cancellationTokens)
Parameters
cancellationTokens
CancellationToken[]The cancellation tokens to link to the new CancellationTokenSource.
Returns
- CancellationTokenSource
A new CancellationTokenSource that is linked to the provided cancellation tokens and the dispose cancellation token of this instance.