public static IConfigurationBuilder AddEtcd(this IConfigurationBuilder builder, Action <EtcdOptions> options)
        {
            EtcdOptions etcdOptions = new EtcdOptions();

            options.Invoke(etcdOptions);
            return(builder.Add(new EtcdConfigurationSource {
                EtcdOptions = etcdOptions
            }));
        }
Ejemplo n.º 2
0
 public EtcdConfigurationProvider(EtcdOptions options)
 {
     _etcdClient     = new EtcdClient(options.Address, username: options.UserName, password: options.PassWord);
     _path           = options.Path;
     _reloadOnChange = options.ReloadOnChange;
 }