public LogRecordService(TimeSpan duration, ILogger <LogRecordService> logger, LogRecordQueue queue, SqlSugarScope db, IFreeSql fsql) { this.logger = logger; this.queue = queue; this.db = db; this.duration = duration; this.fsql = fsql; }
public AuditLogger(SharedOptions sharedOptions, LogRecordQueue queue, string applicationName, string fileName) { SharedOptions = sharedOptions ?? throw new ArgumentNullException(nameof(sharedOptions)); if (string.IsNullOrWhiteSpace(applicationName)) { throw new ArgumentNullException(nameof(applicationName)); } if (string.IsNullOrWhiteSpace(fileName)) { throw new ArgumentNullException(nameof(fileName)); } this.queue = queue ?? throw new ArgumentNullException(nameof(queue)); ApplicationName = applicationName; this.fileName = fileName; }
public UserAuditLogger( SharedOptions sharedOptions, LogRecordQueue queue) : base(sharedOptions, queue, AppDomain.CurrentDomain.FriendlyName, Filenames.UserLog) { }
public RecordController(ILogger <RecordController> logger, LogRecordQueue queue, IIdGenerator <long> idGenerator) { this.logger = logger; this.queue = queue; this.idGenerator = idGenerator; }
public RegistrationAuditLogger(SharedOptions sharedOptions, LogRecordQueue queue) : base(sharedOptions, queue, AppDomain.CurrentDomain.FriendlyName, Filenames.RegistrationLog) { }