Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
ParentSpanId
ActivitySpanId
System.Diagnostics.Activity.ParentSpanId
get
Definition at line
576
of file
Activity.cs
.
577
{
578
get
579
{
580
if
(
_parentSpanId
==
null
)
581
{
582
string
text
=
null
;
583
if
(
_parentId
!=
null
&&
IsW3CId
(
_parentId
))
584
{
585
try
586
{
587
text
= ActivitySpanId.CreateFromString(
_parentId
.AsSpan(36, 16)).ToHexString();
588
}
589
catch
590
{
591
}
592
}
593
else
if
(
Parent
!=
null
&&
Parent
.
IdFormat
==
ActivityIdFormat
.W3C)
594
{
595
text
=
Parent
.
SpanId
.
ToHexString
();
596
}
597
if
(
text
!=
null
)
598
{
599
Interlocked
.
CompareExchange
(
ref
_parentSpanId
,
text
,
null
);
600
}
601
}
602
return
new
ActivitySpanId(
_parentSpanId
);
603
}
604
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Diagnostics.Activity.IdFormat
ActivityIdFormat IdFormat
Definition
Activity.cs:650
System.Diagnostics.Activity.SpanId
ActivitySpanId SpanId
Definition
Activity.cs:532
System.Diagnostics.Activity.Parent
Activity? Parent
Definition
Activity.cs:383
System.Diagnostics.Activity.IsW3CId
static bool IsW3CId(string id)
Definition
Activity.cs:902
System.Diagnostics.Activity._parentId
string _parentId
Definition
Activity.cs:327
System.Diagnostics.Activity._parentSpanId
string _parentSpanId
Definition
Activity.cs:329
System.Threading.Interlocked.CompareExchange
static int CompareExchange(ref int location1, int value, int comparand)
System.Threading.Interlocked
Definition
Interlocked.cs:9
System.Diagnostics.ActivityIdFormat
ActivityIdFormat
Definition
ActivityIdFormat.cs:4
System.ExceptionArgument.text
@ text
System.Diagnostics.ActivitySpanId.ToHexString
string ToHexString()
Definition
ActivitySpanId.cs:47
System
Diagnostics
Activity
Generated by
1.10.0