Interface ICorrelationProtocol
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
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. |