Represents an audit record published by the RecordPublished event.
Namespace: PostSharp.Patterns.Diagnostics.Audit
Assembly: PostSharp.Patterns.Diagnostics.dll
Syntax
[Obsolete("This feature has been moved to the sample PostSharp.Samples.Logging.Audit.")]
public class AuditRecordRemarks
You can customize this class by inheritance. In this case, you also need to customize the AuditRecordBuilder and AuditBackend classes.
Constructors
| Name | Description |
|---|---|
| AuditRecord(Type, string, LogRecordKind) | Initializes a new AuditRecord. |
Properties
| Name | Description |
|---|---|
| DeclaringType | Gets the declaring type of the method. |
| Exception | Gets the Exception if the method failed, or |
| MemberName | Gets the name of the method. |
| RecordKind | Gets the kind of record (typically MethodSuccess or MethodException). |
| Target | Gets the instance on which the method was executed, or |
| Text | Gets a string describing the operation (typically, the method type, name, and parameters). |
| Time | Gets the time when the execution ended. |