Exemple #1
0
 public static IConfigurationBuilder AddConsulConfiguration(this IConfigurationBuilder configurationBuilder, ConsulConfig config, bool reloadOnChanges = false)
 {
     return(configurationBuilder.Add(new DefaultConsulConfigurationSource(config, reloadOnChanges)));
 }
Exemple #2
0
 public static Uri GetServiceAddress(this IApplicationBuilder app, ConsulConfig config)
 {
     return(ConsulRegistration.GetServiceAddress(app, config));
 }