You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Custom attribute that, when applied to a method, causes PostSharp to audit execution of this method. Whenever an audited method is executed, the
8
+
/// <see cref="AuditServices.RecordPublished"/> event is raised. You need to register your own logic to the <see cref="AuditServices.RecordPublished"/> event,
9
+
/// for instance to append the record to a database table.
10
+
/// </summary>
11
+
/// <remarks>
12
+
/// <para>Audit is a special kind of logging. The <see cref="AuditAttribute"/> aspects adds logging with the <c>Audit</c> profile, which is by default served
13
+
/// by the <see cref="AuditBackend"/> back-end, which exposes a simple API to the <see cref="AuditServices"/> class.
14
+
/// </para>
15
+
/// <para>The <see cref="AuditAttribute"/> aspect can be used side-by-side with the <see cref="LogAttribute"/> aspect.</para>
16
+
/// </remarks>
17
+
publicsealedclassAuditAttribute:LogAttributeBase
18
+
{
19
+
/// <summary>
20
+
/// Initializes a new <see cref="AuditAttribute"/>.
/// Represents an audit record published by the <see cref="AuditServices.RecordPublished"/> event.
8
+
/// </summary>
9
+
/// <remarks>
10
+
/// <para>
11
+
/// You can customize this class by inheritance. In this case, you also need to customize the <see cref="AuditBackend"/> and
12
+
/// <see cref="AuditRecordBuilder"/> classes.
13
+
/// </para>
14
+
/// </remarks>
15
+
publicclassAuditRecord
16
+
{
17
+
/// <summary>
18
+
/// Initializes a new <see cref="AuditRecord"/>.
19
+
/// </summary>
20
+
/// <param name="declaringType">Declaring type of the audited method.</param>
21
+
/// <param name="memberName">Name of the audited method.</param>
22
+
/// <param name="recordKind">Kind of record (typically <see cref="LogRecordKind.MethodSuccess"/> or <see cref="LogRecordKind.MethodException"/>).</param>
0 commit comments