PostSharp//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Contexts/Logging­Context/Create­Correlation­Cookie
Open sandboxFocus

Method CreateCorrelationCookie

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.