コード例 #1
0
 public HarLoggerProvider(IOptionsMonitor <HarLoggerOptions> options, IHttpContextAccessor httpContextAccessor)
 {
     _config       = options;
     _loggers      = new ConcurrentDictionary <string, HarLogger>();
     _messageQueue = new HarLoggerProcessor();
     _httpContext  = httpContextAccessor;
 }
コード例 #2
0
ファイル: HarLogger.cs プロジェクト: HaralampidisSA/HarSA
        public HarLogger(string loggerName, HarLoggerProcessor processor, IHttpContextAccessor httpContextAccessor)
        {
            if (loggerName == null)
            {
                throw new ArgumentNullException(nameof(loggerName));
            }

            _loggerName   = loggerName;
            _processor    = processor;
            _httpAccessor = httpContextAccessor;
        }