Ejemplo n.º 1
0
 /// <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)
 {
 }
Ejemplo n.º 2
0
 public BaseUow(IDbContext context, IRepositoryProvider repositoryProvider, IAuditLog auditLog = null) : base(context, repositoryProvider, auditLog)
 {
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Returns all AuditLogEventTraces for the current AuditLog
 /// </summary>
 public static IEnumerable <AuditLogEventTrace> AuditLogEventTraces <T> (this IAuditLog auditLog)
 {
     return(AuditLogEventTraces <T>(auditLog, typeof(T)));
 }
Ejemplo n.º 4
0
 /// <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)));
 }
Ejemplo n.º 5
0
 /// <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)
 {
 }
Ejemplo n.º 7
0
 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)
 {
 }
Ejemplo n.º 9
0
 public AuditDatabase(IDatabase databaseImplementation, IAuditLog auditLog, string user)
 {
     this.databaseImplementation = databaseImplementation;
     this.auditLog = auditLog;
     this.user     = user;
 }
Ejemplo n.º 10
0
 public AuditSubscriber(IAuditLog <T> auditRepository)
 {
     this.auditRepository = auditRepository;
 }
Ejemplo n.º 11
0
 /// <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)
 {
 }
Ejemplo n.º 12
0
 public AudittableDocumentDb(IDocumentDb inner, IAuditLog log)
 {
     Inner = inner;
     Log   = log;
 }
Ejemplo n.º 13
0
 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;
 }
Ejemplo n.º 16
0
 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
 });
Ejemplo n.º 17
0
 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);
 }
Ejemplo n.º 18
0
 public ReportService(IAuditLog auditLog, IEmailSender emailSender)
 {
     this.auditLog = auditLog;
     this.emailSender = emailSender;
 }
Ejemplo n.º 19
0
 public RaftServer(string id, IAuditLog auditLog, IPlanner planner)
 {
     Id        = id;
     _auditLog = auditLog;
     _planner  = planner;
 }