PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Correlation Namespace / Correlation­Request Structure

CorrelationRequest Structure

Represents a request for the ICorrelationProtocol interface. Typically, wraps an ASP.NET incoming request or an HttpClient request.

Namespace:  PostSharp.Patterns.Diagnostics.Correlation
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.10.5.0 (6.10.5.0)
Syntax
C#
public readonly struct CorrelationRequest

The CorrelationRequest type exposes the following members.

Constructors
  NameDescription
Public methodCorrelationRequest
Initializes a new CorrelationRequest.
Properties
  NameDescription
Public propertyDirection
Gets the request direction (In or Out.
Public propertyRemoteHost
Gets the DNS name or IP address of the remote host.
Public propertyRemotePort
Gets the remote port, or -1 if it's the default port.
Public propertyRequest
Gets the original request object wrapped by this interface, for instance an HttpRequest, HttpWeRequest or HttpRequestMessage. This property exists so that custom implementations of ICorrelationProtocol can rely on specific properties of requests that are not exposed by this interface.
Methods
  NameDescription
Public methodAddHeader
Adds a request header.
Public methodRemoveHeader
Removes a request header and all its values.
Public methodTryGetHeader
Gets a request header.
See Also