Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SetCurrentThreadActivityId() [1/2]

static void System.Diagnostics.Tracing.EventSource.SetCurrentThreadActivityId ( Guid activityId)
inlinestaticinherited

Definition at line 446 of file EventSource.cs.

447 {
448 if (IsSupported)
449 {
450 if (TplEventSource.Log != null)
451 {
452 TplEventSource.Log.SetActivityId(activityId);
453 }
454 EventPipeEventProvider.EventActivityIdControl(Interop.Advapi32.ActivityControl.EVENT_ACTIVITY_CTRL_SET_ID, ref activityId);
456 }
457 }
static int EventActivityIdControl(ActivityControl ControlCode, ref Guid ActivityId)
static readonly TplEventSource Log

References Interop.Advapi32.EventActivityIdControl(), System.Diagnostics.Tracing.EventPipeEventProvider.EventActivityIdControl(), System.Diagnostics.Tracing.EventSource.IsSupported, and System.Threading.Tasks.TplEventSource.Log.

Referenced by System.Diagnostics.Tracing.ActivityTracker.ActivityChanging(), System.Threading.Tasks.AwaitTaskContinuation.Execute(), System.Threading.Tasks.Task< TResult >.ExecuteWithThreadLocal(), System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.GetActionLogDelegate(), System.Runtime.CompilerServices.TaskAwaiter< TResult >.OutputWaitEtwEvents(), and System.Transactions.TransactionsEtwProvider.SetActivityId().