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