Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ConsulConfigurationSource"/> class.
 /// </summary>
 /// <param name="hierarchic">The hierarchic.</param>
 /// <param name="factory">The factory.</param>
 public ConsulConfigurationSource(
     IConsulHierarchy hierarchic,
     IConsulFactory factory)
 {
     _hierarchic = hierarchic;
     _proxy      = new ConsulProxy(factory);
 }
 public ConsulFactory_Tests()
 {
     _consulFactory = GetRequiredService <IConsulFactory>();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ConsulProxy"/> class.
 /// </summary>
 /// <param name="factory">The factory.</param>
 public ConsulProxy(
     IConsulFactory factory)
 {
     _client  = factory.Create();
     _factory = factory;
 }