PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Audit Namespace

PostSharp.Patterns.Diagnostics.Audit Namespace

This namespace contains the abstractions for the audit feature, which is a special case of logging.
Classes
  ClassDescription
Public classAuditAttribute Obsolete.
Custom attribute that, when applied to a method, causes PostSharp to audit execution of this method. Whenever an audited method is executed, the RecordPublished event is raised. You need to register your own logic to the RecordPublished event, for instance to append the record to a database table.
Public classAuditRecord Obsolete.
Represents an audit record published by the RecordPublished event.
Public classAuditRecordEventArgs Obsolete.
Arguments of the RecordPublished event.
Public classAuditServices Obsolete.
Exposes a RecordPublished event, which is raised whenever an audited method is executed.