PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Correlation Namespace / ICorrelation­Protocol Interface

ICorrelationProtocol Interface

Defines the semantics of the request correlation protocol in distributed logging. The protocol adds headers to outgoing requests and interpret headers in incoming requests.

Namespace:  PostSharp.Patterns.Diagnostics.Correlation
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public interface ICorrelationProtocol

The ICorrelationProtocol type exposes the following members.

Methods
  NameDescription
Public methodGetIncomingRequestOptions
Gets the IncomingRequestOptions for an incoming request.
Public methodProcessIncomingRequest
Processes an incoming request. The implementation must read the request headers and alter the OpenActivityOptions accordingly. This method is invoked only if the incoming request will be logged.
Public methodProcessOutgoingRequest
Processes an incoming request. The implementation must read the request headers and alter the OpenActivityOptions accordingly.
Remarks
The only available implementation is LegacyHttpCorrelationProtocol. You can also implement the interface, either from scratch, either by calling an existing implementation in a chain of responsibility.
See Also