Skip to main content
.NET 6.0+

AuditTrailService.Instance Property

OBSOLETE

Use the 'IAuditTrailService' service or the 'AuditTrailService.GetService(IServiceProvider serviceProvider)' method instead. For more information, see https://devexpress.com/kb=T1121273.

Provides access to the instance of the AuditTrailService. Use this property in .NET Framework applications to access AuditTrailService settings.

Namespace: DevExpress.Persistent.AuditTrail

Assembly: DevExpress.Persistent.BaseImpl.Xpo.v23.2.dll

Declaration

[Browsable(false)]
[Obsolete("Use the 'IAuditTrailService' service or the 'AuditTrailService.GetService(IServiceProvider serviceProvider)' method instead. For more information, see https://devexpress.com/kb=T1121273.", true)]
public static AuditTrailService Instance { get; }
public static AuditTrailService Instance { get; }

Property Value

Type Description
AuditTrailService

The instance of the AuditTrailService.

Remarks

The following example demonstrates how to use this property:

using DevExpress.Persistent.AuditTrail;
using static DevExpress.Persistent.AuditTrail.AuditTrailService;
// ...
public sealed partial class MySolutionModule : ModuleBase { 
    public override void Setup(XafApplication application) {
        base.Setup(application); 
        AuditTrailService.Instance.CustomizeAuditOperationTypeFilter += 
            new EventHandler<CustomAuditOperationTypeFilterEventArgs>(Instance_CustomizeAuditOperationTypeFilter);  
        //...  
    }  
    // ...
}  
See Also