private void EndUpdateEvent(UpdateContentContext context, AuditTrailTrimmingSettingsPart part) {
            var newRetentionPeriod = part.RetentionPeriod;
            var newMinimumRunInterval = part.MinimumRunInterval;

            if (newRetentionPeriod == _oldRetentionPeriod && newMinimumRunInterval == _oldMinimumRunInterval)
                return;

            _auditTrailManager.CreateRecord<AuditTrailTrimmingSettingsEventProvider>(
                eventName: AuditTrailTrimmingSettingsEventProvider.TrimmingSettingsChanged,
                user: _wca.GetContext().CurrentUser,
                eventData: new Dictionary<string, object> {
                    {"OldRetentionPeriod", _oldRetentionPeriod},
                    {"NewRetentionPeriod", newRetentionPeriod},
                    {"OldMinimumRunInterval", _oldMinimumRunInterval},
                    {"NewMinimumRunInterval", newMinimumRunInterval}
                });
        }
 private void BeginUpdateEvent(UpdateContentContext context, AuditTrailTrimmingSettingsPart part) {
     _oldRetentionPeriod = part.RetentionPeriod;
     _oldMinimumRunInterval = part.MinimumRunInterval;
 }
 private void GetMetadata(GetContentItemMetadataContext context, AuditTrailTrimmingSettingsPart part) {
     context.Metadata.EditorGroupInfo.Add(new GroupInfo(T("Audit Trail")));
 }