Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
        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));
        }