PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​FormattersDefault­Synthetic­Id­Formatter
Open sandboxFocus

DefaultSyntheticIdFormatter Class

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

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

Constructors

Name Description
DefaultSyntheticIdFormatter()

Methods

Name Description
Dispose()
Dispose(Boolean)

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.