PostSharp 6.5 / / 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.
Public classAuditAttribute
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
Represents an audit record published by the RecordPublished event.
Public classAuditRecordEventArgs
Arguments of the RecordPublished event.
Public classAuditServices
Exposes a RecordPublished event, which is raised whenever an audited method is executed.