PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Formatters Namespace / Default­Synthetic­Id­Formatter Class

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 Hierarchy
System.Object
  PostSharp.Patterns.Diagnostics.Formatters.SyntheticIdFormatter
    PostSharp.Patterns.Diagnostics.Formatters.DefaultSyntheticIdFormatter

Namespace:  PostSharp.Patterns.Diagnostics.Formatters
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.9.1.0 (6.9.1.0)
Syntax
C#
public class DefaultSyntheticIdFormatter : SyntheticIdFormatter, 
	IDisposable

The DefaultSyntheticIdFormatter type exposes the following members.

Constructors
  NameDescription
Public methodDefaultSyntheticIdFormatter
Initializes a new instance of the DefaultSyntheticIdFormatter class
Methods
  NameDescription
Public methodDispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Disposes the current object.
Public methodGenerateChildContextId
Generates a new synthetic id for a child of a given context. This context id can then be assigned to SyntheticRootId.
(Overrides SyntheticIdFormatter.GenerateChildContextId(LoggingContext).)
Public methodWriteContextId
Generates the value of the SyntheticId property of a LoggingContext.
(Overrides SyntheticIdFormatter.WriteContextId(UnsafeStringBuilder, LoggingContext).)
Public methodWriteRecordId
Generates the value of the SyntheticId property of a LogRecordBuilder.
(Overrides SyntheticIdFormatter.WriteRecordId(UnsafeStringBuilder, LoggingContext).)
See Also