public RecordLocalizedAuditableActions(IRecordAuditableActions toDecorate, IStringLocalizer localizer)
 {
     this.toDecorate = toDecorate ?? throw new ArgumentNullException(nameof(toDecorate));
     this.localizer  = localizer ?? throw new ArgumentNullException(nameof(localizer));
 }
예제 #2
0
 public AuditSink(IRecordAuditableActions auditRecorder)
 {
     this.auditRecorder = auditRecorder ?? throw new ArgumentNullException();
 }
예제 #3
0
        public override IRecordAuditableActions CreateAuditSource(string source)
        {
            IRecordAuditableActions recordAuditableActions = auditProviderFactory.CreateAuditSource(source);

            return(new RecordLocalizedAuditableActions(recordAuditableActions, localizer));
        }