Пример #1
0
 public ChannelLogger(ChannelLoggerOptions options, IServiceProvider services, LogMessageChannel channel, string category)
 {
     _options  = options;
     _services = services;
     _channel  = channel;
     _category = category;
 }
Пример #2
0
 public ChannelLoggerProvider(LogMessageChannel channel, IServiceProvider services, IOptionsMonitor <ChannelLoggerOptions> monitor)
 {
     _channel  = channel;
     _services = services;
     _options  = monitor.CurrentValue;
 }