示例#1
0
 protected void ActiveCorePreferencesRenders(LoggingConfigurationBuilder builder, ILoggingOptions settings)
 {
     if (settings is LoggingOptions options)
     {
         if (options.AutomaticalScanRendererEnabled)
         {
             PreferencesRenderersScanner.Scan();
         }
         else
         {
             PreferencesRenderersScanner.Given(options.ManuallyRendererTypes);
         }
     }
     else
     {
         PreferencesRenderersScanner.Scan();
     }
 }
示例#2
0
 protected void ActiveMessageTemplatePreheater(LoggingConfigurationBuilder builder, ILoggingOptions settings)
 {
     MessageTemplateCachePreheaterAction?.Invoke(_messageTemplateCachePreheater);
 }