コード例 #1
0
 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;
 }
コード例 #2
0
        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;
        }
コード例 #3
0
 public UserAuditLogger(
     SharedOptions sharedOptions,
     LogRecordQueue queue)
     : base(sharedOptions, queue, AppDomain.CurrentDomain.FriendlyName, Filenames.UserLog)
 {
 }
コード例 #4
0
 public RecordController(ILogger <RecordController> logger, LogRecordQueue queue, IIdGenerator <long> idGenerator)
 {
     this.logger      = logger;
     this.queue       = queue;
     this.idGenerator = idGenerator;
 }
コード例 #5
0
 public RegistrationAuditLogger(SharedOptions sharedOptions,
                                LogRecordQueue queue)
     : base(sharedOptions, queue, AppDomain.CurrentDomain.FriendlyName, Filenames.RegistrationLog)
 {
 }