11 references to PromiseTask
mscorlib (11)
system\runtime\compilerservices\TaskAwaiter.cs (2)
282
if (etwLog.TasksSetActivityIds && (task.Options & (TaskCreationOptions)InternalTaskOptions.
PromiseTask
) != 0)
291
if (etwLog.TasksSetActivityIds && (task.Options & (TaskCreationOptions)InternalTaskOptions.
PromiseTask
) != 0)
system\threading\Tasks\Task.cs (9)
345
m_stateFlags = TASK_STATE_WAITINGFORACTIVATION | (int)InternalTaskOptions.
PromiseTask
;
367
TaskConstructorCore(null, state, default(CancellationToken), creationOptions, InternalTaskOptions.
PromiseTask
, null);
689
(InternalTaskOptions.QueuedByRuntime | InternalTaskOptions.
PromiseTask
| InternalTaskOptions.LazyCancellation)) == 0))
853
Contract.Assert((Options & (TaskCreationOptions)InternalTaskOptions.
PromiseTask
) != 0,
1089
if ((options & (TaskCreationOptions)InternalTaskOptions.
PromiseTask
) != 0)
1189
if ((options & (TaskCreationOptions)InternalTaskOptions.
PromiseTask
) != 0)
3393
Contract.Requires((Options & (TaskCreationOptions)InternalTaskOptions.
PromiseTask
) == 0, "Task.InternalCancel() did not expect promise-style task");
3500
Contract.Assert((Options & (TaskCreationOptions)InternalTaskOptions.
PromiseTask
) != 0, "Task.RecordInternalCancellationRequest(CancellationToken) only valid for promise-style task");
4688
if ((this.Options & (TaskCreationOptions)InternalTaskOptions.
PromiseTask
) != 0 &&