AuditTrailService.Instance Property
OBSOLETE
Use the 'IAuditTrailService' service or the 'AuditTrailService.GetService(IServiceProvider serviceProvider)' metod instead. For more information, see https://devexpress.com/kb=T1121273.
Provides access to the instance of the AuditTrailService. Use this property to access AuditTrailService‘s settings.
Namespace: DevExpress.Persistent.AuditTrail
Assembly: DevExpress.Persistent.BaseImpl.Xpo.v22.2.dll
NuGet Package: DevExpress.Persistent.BaseImpl.Xpo
Declaration
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);
//...
}
// ...
}