PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Backends.​AuditAudit­Record­Builder
Open sandboxFocus

AuditRecordBuilder Class

Record builder for the AuditBackend.

Inheritance
AuditRecordBuilder
Implements
ICustomLogRecordBuilder
System.IDisposable
Namespace: PostSharp.Patterns.Diagnostics.Backends.Audit
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
public class AuditRecordBuilder : TextLogRecordBuilder, ICustomLogRecordBuilder

Constructors

Name Description
AuditRecordBuilder(AuditBackend)

Initializes a new AuditRecordBuilder.

Properties

Name Description
Backend

Gets the current AuditBackend.

CurrentRecord

Gets the AuditRecord being currently built.

Methods

Name Description
BeginRecord(LoggingContext, ref LogRecordInfo, ref LogMemberInfo)

Initializes the current LogRecordBuilder to emit a standard (i.e. non-custom) record for a given context and method.

CreateRecord(LoggingContext, ref LogRecordInfo, ref LogMemberInfo)

Creates an AuditRecord.

SetException(Exception)

Sets the exception for the method or activity.

SetThis<T>(T, IFormatter<T>)

Sets the this (instance) value and uses a given formatter.

Write(UnsafeString)

Writes the final message to the back-end.