public WebJobsOptionsFactory(IEnumerable <IConfigureOptions <TOptions> > setups, IEnumerable <IPostConfigureOptions <TOptions> > postConfigures,
                                     IOptionsLoggingSource logSource, IOptionsFormatter <TOptions> optionsFormatter)
        {
            _innerFactory = new OptionsFactory <TOptions>(setups, postConfigures);
            _logSource    = logSource;

            // This allows us to wrap behavior around an existing type. It will be null for types we don't log.
            _optionsFormatter = optionsFormatter;
        }
Esempio n. 2
0
 public OptionsLoggingService(IOptionsLoggingSource source, ILogger <OptionsLoggingService> logger)
 {
     _logger = logger;
     _source = source;
 }
 public WebJobsOptionsFactory(IEnumerable <IConfigureOptions <TOptions> > setups, IEnumerable <IPostConfigureOptions <TOptions> > postConfigures, IOptionsLoggingSource logSource) :
     this(setups, postConfigures, logSource, null)
 {
 }