PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace / Logging­Context Class / Logging­Context Properties / Logging­Context.​Id Property

LoggingContext.Id Property

Gets or set the identifier of the current context. This value is created according to the strategy set in LoggingBackend.Options.ContextIdGenerationStrategy.

Namespace:  PostSharp.Patterns.Diagnostics.Contexts
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 2023.0.3.0 (2023.0.3.0)
public long Id { get; }

Property Value

Type: Int64
See Also