public override ObjectAuditProcessor CreateAuditProcessor(ObjectAuditingMode mode, Session session, AuditTrailSettings settings) { var auditTrailSettings = new AuditTrailSettings(); auditTrailSettings.SetXPDictionary(XpandModuleBase.Dictiorary); foreach (var auditTrailClassInfo in settings.TypesToAudit) { var auditTrailMemberInfos = auditTrailClassInfo.Properties; auditTrailSettings.AddType(auditTrailClassInfo.ClassInfo.ClassType, auditTrailMemberInfos.Select(info => info.Name).ToArray()); } return mode == (ObjectAuditingMode)Logic.ObjectAuditingMode.None ? new NoAuditProccesor(session, auditTrailSettings) : base.CreateAuditProcessor(mode, session, auditTrailSettings); }
public override ObjectAuditProcessor CreateAuditProcessor(ObjectAuditingMode mode, Session session, AuditTrailSettings settings) { var auditTrailSettings = new AuditTrailSettings(); auditTrailSettings.SetXPDictionary(XpandModuleBase.Dictiorary); foreach (var auditTrailClassInfo in settings.TypesToAudit) { var auditTrailMemberInfos = auditTrailClassInfo.Properties; auditTrailSettings.AddType(auditTrailClassInfo.ClassInfo.ClassType, auditTrailMemberInfos.Select(info => info.Name).ToArray()); } return(mode == (ObjectAuditingMode)Logic.ObjectAuditingMode.None ? new NoAuditProccesor(session, auditTrailSettings) : base.CreateAuditProcessor(mode, session, auditTrailSettings)); }
public override ObjectAuditProcessor CreateAuditProcessor(ObjectAuditingMode mode, Session session, AuditTrailSettings settings) { var auditTrailSettings = new AuditTrailSettings(); auditTrailSettings.SetXPDictionary(XpoTypesInfoHelper.GetXpoTypeInfoSource().XPDictionary); foreach (var auditTrailClassInfo in settings.TypesToAudit) { var auditTrailMemberInfos = auditTrailClassInfo.Properties; if (!(auditTrailClassInfo.ClassInfo is IntermediateClassInfo)) { auditTrailSettings.AddType(auditTrailClassInfo.ClassInfo.ClassType, auditTrailMemberInfos.Select(info => info.Name).ToArray()); } } return(mode == (ObjectAuditingMode)Persistent.Base.AuditTrail.ObjectAuditingMode.None ? new NoAuditProccesor(session, auditTrailSettings) : base.CreateAuditProcessor(mode, session, auditTrailSettings)); }