Ejemplo n.º 1
0
        public ElmLoggerProvider(ElmStore store, IOptions <ElmOptions> options)
        {
            if (store == null)
            {
                throw new ArgumentNullException(nameof(store));
            }

            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            _store   = store;
            _options = options.Value;
        }
Ejemplo n.º 2
0
 public ElmPageMiddleware(RequestDelegate next, IOptions <ElmOptions> options, ElmStore store)
 {
     _next    = next;
     _options = options.Value;
     _store   = store;
 }
 public ElmCaptureMiddleware(RequestDelegate next, ILoggerFactory factory, IOptions <ElmOptions> options)
 {
     _next    = next;
     _options = options.Value;
     _logger  = factory.CreateLogger <ElmCaptureMiddleware>();
 }
Ejemplo n.º 4
0
 public ElmLogger(string name, ElmOptions options, ElmStore store)
 {
     _name    = name;
     _options = options;
     _store   = store;
 }