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