CreateLinkedTokenSource() public static method

public static CreateLinkedTokenSource ( ) : CancellationTokenSource
return CancellationTokenSource
 /// <summary>
 /// Creates a <see cref="CancellationTokenSource"/> that will be canceled when the specified token has cancellation requested.
 /// </summary>
 /// <param name="token">The token.</param>
 /// <returns>The created <see cref="CancellationTokenSource"/>.</returns>
 public static CancellationTokenSource CreateLinkedSource(this CancellationToken token)
 {
     return(CancellationTokenSource.CreateLinkedTokenSource(token, new CancellationToken()));
 }