/// <summary> /// Initializes a new instance of the <see cref="AuditLogSolutionEventTarget"/> class. /// </summary> /// <param name="auditLog">The audit log.</param> public AuditLogSolutionEventTarget(IAuditLog auditLog) : base(auditLog) { }
public BaseUow(IDbContext context, IRepositoryProvider repositoryProvider, IAuditLog auditLog = null) : base(context, repositoryProvider, auditLog) { }
/// <summary> /// Returns all AuditLogEventTraces for the current AuditLog /// </summary> public static IEnumerable <AuditLogEventTrace> AuditLogEventTraces <T> (this IAuditLog auditLog) { return(AuditLogEventTraces <T>(auditLog, typeof(T))); }
/// <summary> /// Returns all AuditLogEventTraces for the current AuditLog /// </summary> public static IEnumerable <AuditLogEventTrace> AuditLogEventTraces <T>(this IAuditLog auditLog, Type type) { return(string.IsNullOrEmpty(auditLog.AuditDetails) ? new List <AuditLogEventTrace>() : XDocument.Parse(auditLog.AuditDetails).Root.Elements("Property").Select(x => AuditLogEventTrace.FromXml <T>(x, type))); }
/// <summary> /// The to audit log display. /// </summary> /// <param name="auditLog"> /// The audit log. /// </param> /// <returns> /// The <see cref="AuditLogDisplay"/>. /// </returns> public static AuditLogDisplay ToAuditLogDisplay(this IAuditLog auditLog) { return(AutoMapper.Mapper.Map <AuditLogDisplay>(auditLog)); }
/// <summary> /// Initializes a new instance of the <see cref="AuditLogTenantEventTarget"/> class. /// </summary> /// <param name="auditLog">The audit log.</param> public AuditLogTenantEventTarget(IAuditLog auditLog) : base(auditLog) { }
public AuditLogController(IAuditLog log) { this.log = log; }
/// <summary> /// Initializes a new instance of the <see cref="AuditLogReportEventTarget"/> class. /// </summary> /// <param name="auditLog">The audit log.</param> public AuditLogReportEventTarget(IAuditLog auditLog) : base(auditLog) { }
public AuditDatabase(IDatabase databaseImplementation, IAuditLog auditLog, string user) { this.databaseImplementation = databaseImplementation; this.auditLog = auditLog; this.user = user; }
public AuditSubscriber(IAuditLog <T> auditRepository) { this.auditRepository = auditRepository; }
/// <summary> /// Initializes a new instance of the <see cref="AuditLogRoleEventTarget"/> class. /// </summary> /// <param name="auditLog">The audit log.</param> public AuditLogRoleEventTarget(IAuditLog auditLog) : base(auditLog) { }
public AudittableDocumentDb(IDocumentDb inner, IAuditLog log) { Inner = inner; Log = log; }
public static IDocumentDb WithAuditing(this IDocumentDb db, IAuditLog log = null) { return(new AudittableDocumentDb(db, log ?? new ConsoleAuditLog())); }
/// <summary> /// Initializes a new instance of the <see cref="AuditLogPasswordPolicyEventTarget"/> class. /// </summary> /// <param name="auditLog">The audit log.</param> public AuditLogPasswordPolicyEventTarget(IAuditLog auditLog) : base(auditLog) { }
public PatientAuditLogInterceptor(IAuditLog auditLog) { this.auditLog = auditLog; }
public static void Log(this IAuditLog audit, string userId, string action, string paramName, object paramValue) => audit.Log(userId, action, new Dictionary <string, object> { [paramName] = paramValue });
public CoreUnitOfWork(IDbContext context, IRepositoryProvider repositoryProvider, IAuditLog auditLog = null) { InstanceType = context.GetType(); Context = context; RepositoryProvider = repositoryProvider; if (auditLog != null) { this.AuditLog = auditLog; } EntityAudit = new EntityAudit(context.Database); }
public ReportService(IAuditLog auditLog, IEmailSender emailSender) { this.auditLog = auditLog; this.emailSender = emailSender; }
public RaftServer(string id, IAuditLog auditLog, IPlanner planner) { Id = id; _auditLog = auditLog; _planner = planner; }