1 write to Parent
System.Diagnostics.DiagnosticSource (1)
System\Diagnostics\Activity.cs (1)
809Parent = _previousActiveActivity;
33 references to Parent
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (7)
HubConnectionTests.Tracing.cs (7)
145Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", a.Parent.OperationName); 179Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", a.Parent.OperationName); 190Assert.Equal(clientParentActivity1, clientActivity1.Parent); 207Assert.Equal(clientParentActivity2, clientActivity2.Parent); 318Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", a.Parent.OperationName); 341Assert.Equal("Microsoft.AspNetCore.Hosting.HttpRequestIn", a.Parent.OperationName); 350Assert.Equal(clientParentActivity, clientActivity.Parent);
Microsoft.AspNetCore.SignalR.Tests (2)
HubConnectionHandlerTests.Activity.cs (2)
80Assert.Equal(invocation3Activity, userCodeActivity.Parent); 493Assert.Equal(parent, activity.Parent);
System.Diagnostics.DiagnosticSource (24)
System\Diagnostics\Activity.cs (23)
285else if (Parent != null) 287Interlocked.CompareExchange(ref _parentId, Parent.Id, null); 380for (Activity? activity = this; activity != null; activity = activity.Parent) 403activity = activity.Parent; 686else if (Parent != null) 716else if (Parent != null) 783/// <item>Sets <see cref="Parent"/> to hold <see cref="Current"/>.</item> 821Parent != null ? Parent.IdFormat : 842/// Stops activity: sets <see cref="Current"/> to <see cref="Parent"/>. 889for (Activity? activity = this; activity != null; activity = activity.Parent) 991else if (Parent != null && Parent.IdFormat == ActivityIdFormat.W3C) 993parentSpanId = Parent.SpanId.ToHexString(); 1325if (Parent != null) 1328Debug.Assert(!string.IsNullOrEmpty(Parent.Id)); 1329ret = AppendSuffix(Parent.Id, Interlocked.Increment(ref Parent._currentChildId).ToString(), '.'); 1425if (Parent != null && Parent.IdFormat == ActivityIdFormat.W3C) 1427_traceId = Parent.TraceId.ToHexString(); 1449if (Parent != null) 1451ActivityTraceFlags = Parent.ActivityTraceFlags;
System\Diagnostics\PassThroughPropagator.cs (1)
48while (activity?.Parent is Activity parent)