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

PostSharp.Patterns.Diagnostics.Audit Namespace

 
Classes
  ClassDescription
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.