PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​ContextsLogging­ContextCreate­Correlation­Cookie
Open sandboxFocus

LoggingContext.CreateCorrelationCookie Method

CreateCorrelationCookie()

Creates a cookie that can be used to correlate, using the SetCorrelation(CorrelationCookie) method, another context to the current context.

Declaration
public virtual CorrelationCookie CreateCorrelationCookie()
Returns
Type Description
CorrelationCookie

A CorrelationCookie, or Null if the current context (and the current back-end) does not support correlations.