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

◆ GenerateHierarchicalId()

string System.Diagnostics.Activity.GenerateHierarchicalId ( )
inlineprivate

Definition at line 1066 of file Activity.cs.

1067 {
1068 if (Parent != null)
1069 {
1071 }
1072 if (ParentId != null)
1073 {
1074 string text = ((ParentId[0] == '|') ? ParentId : ("|" + ParentId));
1075 char c = text[text.Length - 1];
1076 if (c != '.' && c != '_')
1077 {
1078 text += ".";
1079 }
1080 return AppendSuffix(text, Interlocked.Increment(ref s_currentRootId).ToString("x"), '_');
1081 }
1082 return GenerateRootId();
1083 }
static string GenerateRootId()
Definition Activity.cs:1187
string AppendSuffix(string parentId, string suffix, char delimiter)
Definition Activity.cs:1100
static int Increment(ref int location)

References System.Diagnostics.Activity._currentChildId, System.Diagnostics.Activity.AppendSuffix(), System.Diagnostics.Activity.GenerateRootId(), System.Diagnostics.Activity.Id, System.Threading.Interlocked.Increment(), System.Diagnostics.Activity.Parent, System.Diagnostics.Activity.ParentId, System.Diagnostics.Activity.s_currentRootId, and System.text.

Referenced by System.Diagnostics.Activity.Start().