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

◆ SetParentId() [2/2]

Activity System.Diagnostics.Activity.SetParentId ( string parentId)
inline

Definition at line 765 of file Activity.cs.

766 {
767 if (Parent != null)
768 {
770 }
771 else if (ParentId != null || _parentSpanId != null)
772 {
774 }
775 else if (string.IsNullOrEmpty(parentId))
776 {
778 }
779 else
780 {
782 }
783 return this;
784 }
static void NotifyError(Exception exception)
Definition Activity.cs:1055
static string ParentIdInvalid
Definition SR.cs:28
static string SetParentIdOnActivityWithParent
Definition SR.cs:32
static string ParentIdAlreadySet
Definition SR.cs:26
Definition SR.cs:7

References System.Diagnostics.Activity._parentId, System.Diagnostics.Activity._parentSpanId, System.Diagnostics.Activity.NotifyError(), System.Diagnostics.Activity.Parent, System.Diagnostics.Activity.ParentId, System.SR.ParentIdAlreadySet, System.SR.ParentIdInvalid, and System.SR.SetParentIdOnActivityWithParent.