DiagnosticsUtils
Assembly: ServiceStack.Text.dll
View Source
Declaration
public static class DiagnosticsUtils
Methods
GetRoot(Nullable<Activity>)
View Source
Declaration
public static Activity? GetRoot(Activity? activity)
Returns
System.Nullable<Activity>
Parameters
Type | Name |
---|---|
System.Nullable<Activity> | activity |
GetTraceId(Nullable<Activity>)
View Source
Declaration
public static string GetTraceId(this Activity? activity)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Nullable<Activity> | activity |
GetUserId(Nullable<Activity>)
View Source
Declaration
public static string GetUserId(this Activity? activity)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Nullable<Activity> | activity |
GetTag(Nullable<Activity>)
View Source
Declaration
public static string GetTag(this Activity? activity)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Nullable<Activity> | activity |
Init<T>(T, Nullable<Activity>)
View Source
Declaration
public static T Init<T>(this T evt, Activity? activity)
where T : DiagnosticEvent
Returns
<T>
Parameters
Type | Name |
---|---|
<T> | evt |
System.Nullable<Activity> | activity |
Type Parameters
T