PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​CorrelationICorrelation­Protocol
Open sandboxFocus

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.dll
Syntax
public interface ICorrelationProtocol
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.

Methods

Name Description
GetIncomingRequestOptions(in CorrelationRequest)

Gets the IncomingRequestOptions for an incoming request.

ProcessIncomingRequest(in CorrelationRequest, ref OpenActivityOptions)

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.

ProcessOutgoingRequest(LoggingContext, in CorrelationRequest, ref OpenActivityOptions)

Processes an incoming request. The implementation must read the request headers and alter the OpenActivityOptions accordingly.