c# create new cancellation token code example
Example 1: c# cancellationtoken
[System.Runtime.InteropServices.ComVisible(false)]
public struct CancellationToken
Example 2: c# create cancelation token
CancellationTokenSource source = new CancellationTokenSource();
CancellationToken token = source.Token;