Open sandboxFocus

Class DefaultSyntheticIdFormatter

An implementation of SyntheticIdFormatter that is compatible with the Hierarchical Request-Id specification. IDs generated by this class are hierarchical and can be sorted alphabetically while respecting the natural time order.

Inheritance
DefaultSyntheticIdFormatter
Implements
Namespace: PostSharp.Patterns.Diagnostics.Formatters
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class DefaultSyntheticIdFormatter : SyntheticIdFormatter, IDisposable

Constructors

Name Description
DefaultSyntheticIdFormatter()

Methods

Name Description
Dispose()
Dispose(bool)

Disposes the current object.

GenerateChildContextId(LoggingContext)

Generates a new synthetic ID for a child of a given context. This context ID can then be assigned to SyntheticRootId.

WriteContextId(UnsafeStringBuilder, LoggingContext)

Generates the value of the SyntheticId property of a LoggingContext.

WriteRecordId(UnsafeStringBuilder, LoggingContext)

Generates the value of the SyntheticId property of a LogRecordBuilder.