Click or drag to resize

CancellationToken   Conversion (CancellationToken to CancellationTokenSource)

Implicitly converts a GSF cancellation token to an associated CancellationTokenSource.

Namespace: GSF.Threading
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.255-beta+d64b121002b51165b41b0dbf6ccf4c8d3895faa3
Syntax
public static implicit operator CancellationTokenSource (
	CancellationToken token
)
View Source

Parameters

token  CancellationToken
Existing GSF cancellation token that is converted to an associated CancellationTokenSource.

Return Value

CancellationTokenSource
A CancellationToken based on an existing GSF cancellation token.
See Also