public ActiveLoggerProvider(IOptionsMonitor <ActiveLoggerOptions> options)
        {
            loggerOptions = options.CurrentValue;

            producer = ActiveProducer.Create(loggerOptions);
            producer.InitializeCount = loggerOptions.InitializeCount;
        }
Esempio n. 2
0
 private ActiveProducer GetProducer()
 {
     if (producer == null)
     {
         lock (this)
         {
             if (producer == null)
             {
                 producer = ActiveProducer.Create(activeProducerOptions);
                 producer.InitializeCount = activeProducerOptions.InitializeCount;
             }
         }
     }
     return(producer);
 }