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 {
596 }
597 if (text != null)
598 {
600 }
601 }
602 return new ActivitySpanId(_parentSpanId);
603 }
604 }
ActivityIdFormat IdFormat
Definition Activity.cs:650
static bool IsW3CId(string id)
Definition Activity.cs:902
static int CompareExchange(ref int location1, int value, int comparand)