107 references to Id
System.Private.CoreLib (97)
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (5)
1786
info.AsyncProfilerInfo.DispatcherId = (ulong)task.
Id
;
1951
TplEventSource.Log.TraceOperationBegin(task.
Id
, "System.Runtime.CompilerServices.AsyncHelpers+RuntimeAsyncTask", 0);
1956
TplEventSource.Log.TraceSynchronousWorkBegin(task.
Id
, CausalitySynchronousWork.Execution);
1975
TplEventSource.Log.TraceOperationEnd(task.
Id
, AsyncCausalityStatus.Completed);
1985
TplEventSource.Log.TraceOperationEnd(task.
Id
, ex is OperationCanceledException ? AsyncCausalityStatus.Canceled : AsyncCausalityStatus.Error);
src\runtime\src\coreclr\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncProfiler.CoreCLR.cs (1)
16
public static ulong GetDispatcherId(Task dispatcher) => (ulong)dispatcher.
Id
;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (1)
108
TplEventSource.Log.TraceOperationBegin(t.
Id
, "Async: " + stateMachineType.Name, 0);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncStateMachineDispatcher.cs (2)
280
ulong IAsyncStateMachineDispatcher.DispatcherId => (ulong)
Id
;
303
info.AsyncProfilerInfo.DispatcherId = (ulong)
Id
;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (4)
459
$"Id = {
Id
}, Status = {Status}, Method = {stateMachineName}, Result = {m_result}" :
460
$"Id = {
Id
}, Status = {Status}, Method = {stateMachineName}";
516
TplEventSource.Log.TraceSynchronousWorkBegin(this.
Id
, CausalitySynchronousWork.Execution);
674
TplEventSource.Log.TraceOperationEnd(task.
Id
, AsyncCausalityStatus.Completed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncVoidMethodBuilder.cs (2)
80
TplEventSource.Log.TraceOperationEnd(this.Task.
Id
, AsyncCausalityStatus.Completed);
120
TplEventSource.Log.TraceOperationEnd(this.Task.
Id
, AsyncCausalityStatus.Error);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (7)
264
currentTaskAtBegin != null ? currentTaskAtBegin.
Id
: 0,
265
task.
Id
, TplEventSource.TaskWaitBehavior.Asynchronous,
266
continuationTask != null ? continuationTask.
Id
: 0);
291
currentTaskAtEnd != null ? currentTaskAtEnd.
Id
: 0,
292
innerTask.
Id
);
297
EventSource.SetCurrentThreadActivityId(TplEventSource.CreateGuidForTaskID(innerTask.
Id
), out prevActivityId);
305
innerEtwLog.TaskWaitContinuationComplete(innerTask.
Id
);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task_T.cs (1)
1428
public int Id => m_task.
Id
;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (48)
102
/// store for the <see cref="
Id
"/> property, however accessing this field directly from a debugger may be
202
int taskId = task.
Id
;
217
int taskId = task.
Id
;
320
runtimeAsyncTaskTimestamps[task.
Id
] = timestamp;
334
runtimeAsyncTaskTimestamps.Remove(task.
Id
);
1005
TplEventSource.Log.TaskScheduled(ts.Id, currentTask == null ? 0 : currentTask.
Id
,
1006
this.
Id
, parentTask == null ? 0 : parentTask.
Id
, (int)this.Options);
1361
return currentTask.
Id
;
1837
TplEventSource.Log.TraceOperationBegin(this.
Id
, "Task: " + action.GetMethodName(), 0);
2212
TplEventSource.Log.TraceOperationEnd(this.
Id
, AsyncCausalityStatus.Error);
2228
TplEventSource.Log.TraceOperationEnd(this.
Id
, AsyncCausalityStatus.Canceled);
2237
TplEventSource.Log.TraceOperationEnd(this.
Id
, AsyncCausalityStatus.Completed);
2467
EventSource.SetCurrentThreadActivityId(TplEventSource.CreateGuidForTaskID(this.
Id
), out savedActivityID);
2470
log.TaskStarted(previousTask.m_taskScheduler!.Id, previousTask.
Id
, this.
Id
);
2472
log.TaskStarted(TaskScheduler.Current.Id, 0, this.
Id
);
2474
log.TraceSynchronousWorkBegin(this.
Id
, CausalitySynchronousWork.Execution);
2524
log.TaskCompleted(previousTask.m_taskScheduler!.Id, previousTask.
Id
, this.
Id
, IsFaulted);
2526
log.TaskCompleted(TaskScheduler.Current.Id, 0, this.
Id
, IsFaulted);
3139
currentTask != null ? currentTask.m_taskScheduler!.Id : TaskScheduler.Default.Id, currentTask != null ? currentTask.
Id
: 0,
3140
this.
Id
, TplEventSource.TaskWaitBehavior.Synchronous, 0);
3173
log.TaskWaitEnd(currentTask.m_taskScheduler!.Id, currentTask.
Id
, this.
Id
);
3177
log.TaskWaitEnd(TaskScheduler.Default.Id, 0, this.
Id
);
3180
log.TaskWaitContinuationComplete(this.
Id
);
3473
TplEventSource.Log.TraceOperationEnd(this.
Id
, AsyncCausalityStatus.Canceled);
3621
log.TraceSynchronousWorkBegin(this.
Id
, CausalitySynchronousWork.CompletionNotification);
3708
log.RunningContinuationList(
Id
, i, stc);
3718
log.RunningContinuationList(
Id
, i, currentContinuation);
3756
log.RunningContinuationList(
Id
, i, currentContinuation);
4696
log.AwaitTaskContinuationScheduled(TaskScheduler.Current.Id, CurrentId ?? 0, continuationTask.
Id
);
5968
TplEventSource.Log.TraceOperationBegin(this.
Id
, "Task.Delay", 0);
6010
TplEventSource.Log.TraceOperationEnd(this.
Id
, AsyncCausalityStatus.Completed);
6241
TplEventSource.Log.TraceOperationBegin(
Id
, "Task.WhenAll", 0);
6268
TplEventSource.Log.TraceOperationRelation(
Id
, CausalityRelation.Join);
6321
TplEventSource.Log.TraceOperationEnd(
Id
, AsyncCausalityStatus.Completed);
6583
TplEventSource.Log.TraceOperationBegin(this.
Id
, "Task.WhenAll", 0);
6598
TplEventSource.Log.TraceOperationRelation(this.
Id
, CausalityRelation.Join);
6653
TplEventSource.Log.TraceOperationEnd(this.
Id
, AsyncCausalityStatus.Completed);
6808
TplEventSource.Log.TraceOperationBegin(this.
Id
, "Task.WhenAny", 0);
6843
TplEventSource.Log.TraceOperationRelation(this.
Id
, CausalityRelation.Choice);
6844
TplEventSource.Log.TraceOperationEnd(this.
Id
, AsyncCausalityStatus.Completed);
7337
public int Id => m_task.
Id
;
7580
TplEventSource.Log.TraceOperationBegin(this.
Id
, "Task.Unwrap", 0);
7690
TplEventSource.Log.TraceOperationRelation(this.
Id
, CausalityRelation.Join);
7716
TplEventSource.Log.TraceOperationEnd(this.
Id
, AsyncCausalityStatus.Completed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (5)
280
TplEventSource.Log.TraceOperationBegin(m_task.
Id
, "Task.ContinueWith: " + task.m_action!.GetMethodName(), 0);
317
TplEventSource.Log.TraceOperationRelation(continuationTask.
Id
, CausalityRelation.AssignDelegate);
407
log.AwaitTaskContinuationScheduled((task.ExecutingTaskScheduler ?? TaskScheduler.Default).Id, task.
Id
, m_continuationId);
594
log.AwaitTaskContinuationScheduled((task.ExecutingTaskScheduler ?? TaskScheduler.Default).Id, task.
Id
, m_continuationId);
839
log.AwaitTaskContinuationScheduled((task.ExecutingTaskScheduler ?? TaskScheduler.Default).Id, task.
Id
, atc.m_continuationId);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory_T.cs (11)
530
TplEventSource.Log.TraceOperationEnd(promise.
Id
, AsyncCausalityStatus.Completed);
652
TplEventSource.Log.TraceOperationBegin(promise.
Id
, "TaskFactory.FromAsync", 0);
668
TplEventSource.Log.TraceOperationBegin(t.
Id
, "TaskFactory.FromAsync Callback", 0);
771
TplEventSource.Log.TraceOperationBegin(promise.
Id
, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0);
793
TplEventSource.Log.TraceOperationEnd(promise.
Id
, AsyncCausalityStatus.Error);
888
TplEventSource.Log.TraceOperationBegin(promise.
Id
, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0);
910
TplEventSource.Log.TraceOperationEnd(promise.
Id
, AsyncCausalityStatus.Error);
1013
TplEventSource.Log.TraceOperationBegin(promise.
Id
, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0);
1035
TplEventSource.Log.TraceOperationEnd(promise.
Id
, AsyncCausalityStatus.Error);
1146
TplEventSource.Log.TraceOperationBegin(promise.
Id
, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0);
1168
TplEventSource.Log.TraceOperationEnd(promise.
Id
, AsyncCausalityStatus.Error);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (9)
1559
TplEventSource.Log.TraceOperationBegin(this.
Id
, "TaskFactory.ContinueWhenAll", 0);
1568
TplEventSource.Log.TraceOperationRelation(this.
Id
, CausalityRelation.Join);
1574
TplEventSource.Log.TraceOperationEnd(this.
Id
, AsyncCausalityStatus.Completed);
1629
TplEventSource.Log.TraceOperationBegin(this.
Id
, "TaskFactory.ContinueWhenAll<>", 0);
1638
TplEventSource.Log.TraceOperationRelation(this.
Id
, CausalityRelation.Join);
1644
TplEventSource.Log.TraceOperationEnd(this.
Id
, AsyncCausalityStatus.Completed);
2284
TplEventSource.Log.TraceOperationBegin(this.
Id
, "TaskFactory.ContinueWhenAny", 0);
2301
TplEventSource.Log.TraceOperationRelation(this.
Id
, CausalityRelation.Choice);
2302
TplEventSource.Log.TraceOperationEnd(this.
Id
, AsyncCausalityStatus.Completed);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (1)
467
_ = t.
Id
;
System.Threading.Tasks.Dataflow (10)
Blocks\BroadcastBlock.cs (2)
281
Debug.Assert(_boundingState.TaskForInputProcessing.
Id
== Task.CurrentId,
327
Debug.Assert(_boundingState.TaskForInputProcessing.
Id
== Task.CurrentId,
Blocks\BufferBlock.cs (2)
283
Debug.Assert(_boundingState.TaskForInputProcessing.
Id
== Task.CurrentId,
329
Debug.Assert(_boundingState.TaskForInputProcessing.
Id
== Task.CurrentId,
Internal\Common.cs (1)
107
return t != null ? t.
Id
: NOTASKID;
Internal\DataflowEtwProvider.cs (1)
97
TaskLaunchedForMessageHandling(Common.GetBlockId(block), reason, availableMessages, task.
Id
);
Internal\SourceCore.cs (2)
794
Debug.Assert(_taskForOutputProcessing != null && _taskForOutputProcessing.
Id
== Task.CurrentId,
852
Debug.Assert(_taskForOutputProcessing != null && _taskForOutputProcessing.
Id
== Task.CurrentId,
Internal\SpscTargetCore.cs (2)
194
_activeConsumer != null && _activeConsumer.
Id
== Task.CurrentId,
256
Debug.Assert(previousConsumer != null && previousConsumer.
Id
== Task.CurrentId,