HealthServiceRequest.GetCorrelationId HealthServiceRequest.GetCorrelationId HealthServiceRequest.GetCorrelationId Method

Definition

Gets the correlation id that was set by the user. For web applications, the correlation id was set inside of HttpContext.Current.Items, so GetCorrelationId will retrieve from the HttpContext

For non web applications, it will return whatever was set in the [ThreadStatic] variable.

public static Guid GetCorrelationId ();
static member GetCorrelationId : unit -> Guid
Public Shared Function GetCorrelationId () As Guid

Returns

Applies to