Пример #1
0
 private void ReloadLoggerOptions(MyLabFormatterOptions newOpts)
 {
     _formatterOptions = newOpts;
 }
Пример #2
0
 public MyLabConsoleFormatter(IOptionsMonitor <MyLabFormatterOptions> options) : base("mylab")
 {
     _optionsReloadToken = options.OnChange(ReloadLoggerOptions);
     _formatterOptions   = options.CurrentValue;
 }