PostSharp.ILAPI 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
System.IDisposable
Namespace: PostSharp.Patterns.Diagnostics.Formatters
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class DefaultSyntheticIdFormatter : SyntheticIdFormatter

Constructors

Name Description
DefaultSyntheticIdFormatter() PostSharp.Patterns.Diagnostics.Formatters.DefaultSyntheticIdFormatter

Methods

Name Description
Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

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.