PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace/Logging­Context Class/Logging­Context Methods/Logging­Context.​Set­Correlation Method

LoggingContext.SetCorrelation Method

Associates the current context with another context.

Namespace:  PostSharp.Patterns.Diagnostics.Contexts
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.2.13.0 (6.2.13.0)
Syntax
C#
public virtual void SetCorrelation(
	CorrelationCookie correlationCookie
)

Parameters

correlationCookie
Type: PostSharp.Patterns.Diagnostics.Contexts.CorrelationCookie
A CorrelationCookie created by the CreateCorrelationCookie() method of another context.
See Also