API

BeginScope

Starts bounded contextual state where supported by the provider.

Formal Syntax & Structure

csharp syntaxcsharp
logger.BeginScope(state)

Working Example

Example Snippetcsharp
// Documentary fragment; see linked lesson for context.logger.BeginScope(state)
C# & .NET Reference