24 references to CancellationToken
mscorlib (24)
system\threading\Tasks\Future.cs (1)
1666
public bool CancellationPending { get { return (m_task.Status == TaskStatus.WaitingToRun) && m_task.
CancellationToken
.IsCancellationRequested; } }
system\threading\Tasks\Task.cs (22)
428
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> that will be assigned to the new task.</param>
473
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> that will be assigned to the new task.</param>
517
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> that will be assigned to the new task.</param>
1453
/// A <see cref="Task">Task</see> will complete in Canceled state either if its <see cref="
CancellationToken
">CancellationToken</see>
3091
/// A <see cref="
CancellationToken
"/> to observe while waiting for the task to complete.
3137
/// A <see cref="
CancellationToken
"/> to observe while waiting for the task to complete.
3765
/// <param name="cancellationToken"> The <see cref="
CancellationToken
"/> that will be assigned to the new continuation task.</param>
3863
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> that will be assigned to the new continuation task.</param>
3964
/// <param name="cancellationToken"> The <see cref="
CancellationToken
"/> that will be assigned to the new continuation task.</param>
4065
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> that will be assigned to the new continuation task.</param>
4173
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> that will be assigned to the new continuation task.</param>
4273
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> that will be assigned to the new continuation task.</param>
4389
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> that will be assigned to the new continuation task.</param>
4492
/// <param name="cancellationToken">The <see cref="
CancellationToken
"/> that will be assigned to the new continuation task.</param>
4985
/// A <see cref="
CancellationToken
"/> to observe while waiting for the tasks to complete.
5021
/// A <see cref="
CancellationToken
"/> to observe while waiting for the tasks to complete.
5373
/// A <see cref="
CancellationToken
"/> to observe while waiting for a task to complete.
5434
/// A <see cref="
CancellationToken
"/> to observe while waiting for a task to complete.
6170
TrySetCanceled(canceledTask.
CancellationToken
, canceledTask.GetCancellationExceptionDispatchInfo());
6420
TrySetCanceled(canceledTask.
CancellationToken
, canceledTask.GetCancellationExceptionDispatchInfo());
6718
public bool CancellationPending { get { return (m_task.Status == TaskStatus.WaitingToRun) && m_task.
CancellationToken
.IsCancellationRequested; } }
7278
result = TrySetCanceled(task.
CancellationToken
, task.GetCancellationExceptionDispatchInfo());
system\threading\Tasks\TaskCanceledException.cs (1)
66
base(Environment.GetResourceString("TaskCanceledException_ctor_DefaultMessage"), task!=null ? task.
CancellationToken
:new CancellationToken())