HttpRequestMessageExtensions.GetCorrelationId Method (HttpRequestMessage)
Retrieves the Guid which has been assigned as the correlation ID associated with the given request. The value will be created and set the first time this method is called.
Namespace: System.Net.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
public static Guid GetCorrelationId(
this HttpRequestMessage request
)
public:
[ExtensionAttribute]
static Guid GetCorrelationId(
HttpRequestMessage^ request
)
static member GetCorrelationId :
request:HttpRequestMessage -> Guid
<ExtensionAttribute>
Public Shared Function GetCorrelationId (
request As HttpRequestMessage
) As Guid
Parameters
request
Type: System.Net.Http.HttpRequestMessageThe HTTP request.
Return Value
Type: System.Guid
The Guid object that represents the correlation ID associated with the request.
See Also
HttpRequestMessageExtensions Class
System.Net.Http Namespace
Return to top