PostSharp 6.4 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom.​Messages Namespace / IMessage Interface / IMessage Methods / IMessage.​Write Method

IMessage.Write Method

Renders the current message into a given ICustomLogRecordBuilder.

Namespace:  PostSharp.Patterns.Diagnostics.Custom.Messages
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.4.11.0 (6.4.11.0)
Syntax
C#
void Write(
	ICustomLogRecordBuilder builder,
	CustomLogRecordItem kind
)

Parameters

builder
Type: PostSharp.Patterns.Diagnostics.Custom.ICustomLogRecordBuilder
A ICustomLogRecordBuilder.
kind
Type: PostSharp.Patterns.Diagnostics.Custom.CustomLogRecordItem
The situation in which the message is rendered (to be passed to BeginWriteItem(CustomLogRecordItem, CustomLogRecordTextOptions))..
Remarks

The IMessage implementation is responsible for invoking BeginWriteItem(CustomLogRecordItem, CustomLogRecordTextOptions) and EndWriteItem(CustomLogRecordItem).

See Also