21 references to Options
mscorlib (21)
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 (17)
688
if ((((InternalTaskOptions)
Options
&
723
((
Options
& TaskCreationOptions.AttachedToParent) != 0)
724
&& ((m_parent.
Options
& TaskCreationOptions.DenyChildAttach) == 0))
853
Contract.Assert((
Options
& (TaskCreationOptions)InternalTaskOptions.PromiseTask) != 0,
985
this.Id, parentTask == null ? 0 : parentTask.Id, (int)this.
Options
,
1576
get { return
Options
& (TaskCreationOptions)(~InternalTaskOptions.InternalOptionsMask); }
1699
return (
Options
& (TaskCreationOptions)(InternalTaskOptions.SelfReplicating | InternalTaskOptions.ChildReplica))
1709
get { return (
Options
& (TaskCreationOptions)InternalTaskOptions.ChildReplica) != 0; }
1854
if ((
Options
& (TaskCreationOptions)InternalTaskOptions.DoNotDispose) != 0)
1936
if (AsyncCausalityTracer.LoggingOn && (
Options
& (TaskCreationOptions)InternalTaskOptions.ContinuationTask) == 0)
1966
if ((
Options
& (TaskCreationOptions)InternalTaskOptions.ContinuationTask) == 0)
2171
&& ((
Options
& TaskCreationOptions.AttachedToParent) != 0)
2732
if (bPreventDoubleExecution || ((
Options
& (TaskCreationOptions)InternalTaskOptions.SelfReplicating) != 0))
3393
Contract.Requires((
Options
& (TaskCreationOptions)InternalTaskOptions.PromiseTask) == 0, "Task.InternalCancel() did not expect promise-style task");
3421
bool bRequiresAtomicStartTransition = (ts != null && ts.RequiresAtomicStartTransition) || ((
Options
& (TaskCreationOptions)InternalTaskOptions.SelfReplicating) != 0);
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 &&
system\threading\Tasks\ThreadPoolTaskScheduler.cs (2)
58
if ((task.
Options
& TaskCreationOptions.LongRunning) != 0)
68
bool forceToGlobalQueue = ((task.
Options
& TaskCreationOptions.PreferFairness) != 0);