105 references to Id
System.Private.CoreLib (95)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncMethodBuilderCore.cs (1)
108TplEventSource.Log.TraceOperationBegin(t.Id, "Async: " + stateMachineType.Name, 0);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncTaskMethodBuilderT.cs (4)
323$"Id = {Id}, Status = {Status}, Method = {stateMachineName}, Result = {m_result}" : 324$"Id = {Id}, Status = {Status}, Method = {stateMachineName}"; 359TplEventSource.Log.TraceSynchronousWorkBegin(this.Id, CausalitySynchronousWork.Execution); 491TplEventSource.Log.TraceOperationEnd(task.Id, AsyncCausalityStatus.Completed);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\AsyncVoidMethodBuilder.cs (2)
80TplEventSource.Log.TraceOperationEnd(this.Task.Id, AsyncCausalityStatus.Completed); 120TplEventSource.Log.TraceOperationEnd(this.Task.Id, AsyncCausalityStatus.Error);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\TaskAwaiter.cs (7)
236currentTaskAtBegin != null ? currentTaskAtBegin.Id : 0, 237task.Id, TplEventSource.TaskWaitBehavior.Asynchronous, 238continuationTask != null ? continuationTask.Id : 0); 263currentTaskAtEnd != null ? currentTaskAtEnd.Id : 0, 264innerTask.Id); 269EventSource.SetCurrentThreadActivityId(TplEventSource.CreateGuidForTaskID(innerTask.Id), out prevActivityId); 277innerEtwLog.TaskWaitContinuationComplete(innerTask.Id);
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\YieldAwaitable.cs (1)
157TplEventSource.Log.AwaitTaskContinuationScheduled(TaskScheduler.Current.Id, (currentTask != null) ? currentTask.Id : 0, continuationId);
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 198int taskId = task.Id; 213int taskId = task.Id; 270runtimeAsyncTaskTimestamps[task.Id] = inflightTimestamp; 282runtimeAsyncTaskTimestamps.Remove(task.Id); 934TplEventSource.Log.TaskScheduled(ts.Id, currentTask == null ? 0 : currentTask.Id, 935this.Id, parentTask == null ? 0 : parentTask.Id, (int)this.Options); 1290return currentTask.Id; 1762TplEventSource.Log.TraceOperationBegin(this.Id, "Task: " + action.GetMethodName(), 0); 2137TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Error); 2153TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Canceled); 2162TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 2391EventSource.SetCurrentThreadActivityId(TplEventSource.CreateGuidForTaskID(this.Id), out savedActivityID); 2394log.TaskStarted(previousTask.m_taskScheduler!.Id, previousTask.Id, this.Id); 2396log.TaskStarted(TaskScheduler.Current.Id, 0, this.Id); 2398log.TraceSynchronousWorkBegin(this.Id, CausalitySynchronousWork.Execution); 2448log.TaskCompleted(previousTask.m_taskScheduler!.Id, previousTask.Id, this.Id, IsFaulted); 2450log.TaskCompleted(TaskScheduler.Current.Id, 0, this.Id, IsFaulted); 3063currentTask != null ? currentTask.m_taskScheduler!.Id : TaskScheduler.Default.Id, currentTask != null ? currentTask.Id : 0, 3064this.Id, TplEventSource.TaskWaitBehavior.Synchronous, 0); 3097log.TaskWaitEnd(currentTask.m_taskScheduler!.Id, currentTask.Id, this.Id); 3101log.TaskWaitEnd(TaskScheduler.Default.Id, 0, this.Id); 3104log.TaskWaitContinuationComplete(this.Id); 3397TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Canceled); 3545log.TraceSynchronousWorkBegin(this.Id, CausalitySynchronousWork.CompletionNotification); 3620log.RunningContinuationList(Id, i, stc); 3630log.RunningContinuationList(Id, i, currentContinuation); 3662log.RunningContinuationList(Id, i, currentContinuation); 4596log.AwaitTaskContinuationScheduled(TaskScheduler.Current.Id, CurrentId ?? 0, continuationTask.Id); 5867TplEventSource.Log.TraceOperationBegin(this.Id, "Task.Delay", 0); 5909TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 6140TplEventSource.Log.TraceOperationBegin(Id, "Task.WhenAll", 0); 6167TplEventSource.Log.TraceOperationRelation(Id, CausalityRelation.Join); 6220TplEventSource.Log.TraceOperationEnd(Id, AsyncCausalityStatus.Completed); 6482TplEventSource.Log.TraceOperationBegin(this.Id, "Task.WhenAll", 0); 6497TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Join); 6552TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 6707TplEventSource.Log.TraceOperationBegin(this.Id, "Task.WhenAny", 0); 6742TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Choice); 6743TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 7234public int Id => m_task.Id; 7477TplEventSource.Log.TraceOperationBegin(this.Id, "Task.Unwrap", 0); 7587TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Join); 7613TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task_T.cs (1)
1428public int Id => m_task.Id;
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskContinuation.cs (5)
280TplEventSource.Log.TraceOperationBegin(m_task.Id, "Task.ContinueWith: " + task.m_action!.GetMethodName(), 0); 317TplEventSource.Log.TraceOperationRelation(continuationTask.Id, CausalityRelation.AssignDelegate); 407log.AwaitTaskContinuationScheduled((task.ExecutingTaskScheduler ?? TaskScheduler.Default).Id, task.Id, m_continuationId); 580log.AwaitTaskContinuationScheduled((task.ExecutingTaskScheduler ?? TaskScheduler.Default).Id, task.Id, m_continuationId); 818log.AwaitTaskContinuationScheduled((task.ExecutingTaskScheduler ?? TaskScheduler.Default).Id, task.Id, atc.m_continuationId);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory.cs (9)
1559TplEventSource.Log.TraceOperationBegin(this.Id, "TaskFactory.ContinueWhenAll", 0); 1568TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Join); 1574TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 1629TplEventSource.Log.TraceOperationBegin(this.Id, "TaskFactory.ContinueWhenAll<>", 0); 1638TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Join); 1644TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 2284TplEventSource.Log.TraceOperationBegin(this.Id, "TaskFactory.ContinueWhenAny", 0); 2301TplEventSource.Log.TraceOperationRelation(this.Id, CausalityRelation.Choice); 2302TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory_T.cs (11)
530TplEventSource.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Completed); 652TplEventSource.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync", 0); 668TplEventSource.Log.TraceOperationBegin(t.Id, "TaskFactory.FromAsync Callback", 0); 771TplEventSource.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0); 793TplEventSource.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error); 888TplEventSource.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0); 910TplEventSource.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error); 1013TplEventSource.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0); 1035TplEventSource.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error); 1146TplEventSource.Log.TraceOperationBegin(promise.Id, "TaskFactory.FromAsync: " + beginMethod.GetMethodName(), 0); 1168TplEventSource.Log.TraceOperationEnd(promise.Id, AsyncCausalityStatus.Error);
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskScheduler.cs (1)
467_ = t.Id;
src\System\Runtime\CompilerServices\AsyncHelpers.CoreCLR.cs (5)
495TplEventSource.Log.TraceSynchronousWorkBegin(this.Id, CausalitySynchronousWork.Execution); 556TplEventSource.Log.TraceOperationEnd(this.Id, ex is OperationCanceledException ? AsyncCausalityStatus.Canceled : AsyncCausalityStatus.Error); 581TplEventSource.Log.TraceOperationEnd(this.Id, AsyncCausalityStatus.Completed); 730TplEventSource.Log.TraceOperationBegin(result.Id, "System.Runtime.CompilerServices.AsyncHelpers+RuntimeAsyncTask", 0); 746TplEventSource.Log.TraceOperationBegin(result.Id, "System.Runtime.CompilerServices.AsyncHelpers+RuntimeAsyncTask", 0);
System.Threading.Tasks.Dataflow (10)
Blocks\BroadcastBlock.cs (2)
281Debug.Assert(_boundingState.TaskForInputProcessing.Id == Task.CurrentId, 327Debug.Assert(_boundingState.TaskForInputProcessing.Id == Task.CurrentId,
Blocks\BufferBlock.cs (2)
283Debug.Assert(_boundingState.TaskForInputProcessing.Id == Task.CurrentId, 329Debug.Assert(_boundingState.TaskForInputProcessing.Id == Task.CurrentId,
Internal\Common.cs (1)
107return t != null ? t.Id : NOTASKID;
Internal\DataflowEtwProvider.cs (1)
97TaskLaunchedForMessageHandling(Common.GetBlockId(block), reason, availableMessages, task.Id);
Internal\SourceCore.cs (2)
794Debug.Assert(_taskForOutputProcessing != null && _taskForOutputProcessing.Id == Task.CurrentId, 852Debug.Assert(_taskForOutputProcessing != null && _taskForOutputProcessing.Id == Task.CurrentId,
Internal\SpscTargetCore.cs (2)
194_activeConsumer != null && _activeConsumer.Id == Task.CurrentId, 256Debug.Assert(previousConsumer != null && previousConsumer.Id == Task.CurrentId,