Open sandboxFocus

Namespace PostSharp.Patterns.Diagnostics.Audit

Classes

AuditAttribute

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.

AuditRecord

Represents an audit record published by the RecordPublished event.

AuditRecordEventArgs

Arguments of the RecordPublished event.

AuditServices

Exposes a RecordPublished event, which is raised whenever an audited method is executed.