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