Token Source 类
A CancellationTokenSource is used to create CancellationToken object and manage it.
public class CancellationTokenSource
Initializes a new instance of the system.fabric.CancellationTokenSource class.
Requests cancel on the CancellationToken being managed by this object.
Returns the cancellation token which is being by this system.fabric.CancellationTokenSource object.
Gets whether cancellation has been requested for this system.fabric.CancellationTokenSource.