public ActiveLoggerProvider(IOptionsMonitor <ActiveLoggerOptions> options) { loggerOptions = options.CurrentValue; producer = ActiveProducer.Create(loggerOptions); producer.InitializeCount = loggerOptions.InitializeCount; }
private ActiveProducer GetProducer() { if (producer == null) { lock (this) { if (producer == null) { producer = ActiveProducer.Create(activeProducerOptions); producer.InitializeCount = activeProducerOptions.InitializeCount; } } } return(producer); }