Record builder for the AuditBackend.
Namespace: PostSharp.Patterns.Diagnostics.Backends.Audit
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
[Obsolete("This feature has been moved to the sample PostSharp.Samples.Logging.Audit.")]
public class AuditRecordBuilder : TextLogRecordBuilder, ICustomLogRecordBuilder, IDisposable
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 |
Write(UnsafeString) | Writes the final message to the back-end. |