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

DefaultSyntheticIdFormatter.WriteContextId Method

Generates the value of the SyntheticId property of a LoggingContext.

Namespace:  PostSharp.Patterns.Diagnostics.Formatters
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.9.7.0 (6.9.7.0)
Syntax
C#
public override void WriteContextId(
	UnsafeStringBuilder stringBuilder,
	LoggingContext context
)

Parameters

stringBuilder
Type: PostSharp.Patterns.Formatters.UnsafeStringBuilder
The target UnsafeStringBuilder.
context
Type: PostSharp.Patterns.Diagnostics.Contexts.LoggingContext
The context for which the synthetic id needs to be generated.
See Also