コード例 #1
0
        private static void ApplyConfiguration(IConfigurationSection config, ElasticOptions options)
        {
            if (config == null)
            {
                return;
            }

            config.Bind(options);
        }
 public ElasticConfigProvider(
     IOptions <ElasticOptions> options,
     INameResolver nameResolver,
     ILoggerFactory loggerFactory
     )
 {
     _options      = options.Value;
     _nameResolver = nameResolver;
     _logger       = loggerFactory.CreateLogger("Elastic");
 }