public ChannelLoggerProvider(IOptionsMonitor <ChannelLoggerOptions> options, LoggerChannel channel) : this(options.CurrentValue, channel)
 {
     _onChangeToken = options.OnChange(options => {
         _options = options;
     });
 }
 public ChannelLoggerProvider(ChannelLoggerOptions options, LoggerChannel channel) => (_options, _channel) = (options, channel.Channel);
Beispiel #3
0
 public ChannelLogger(string name, ChannelLoggerOptions options, IExternalScopeProvider scopeProvider, Channel <string> channel)
 => (_name, _options, _scopeProvider, _channel) = (name, options, scopeProvider, channel);