#559 +semver: breaking always use environment when working out AddOcelot on builder

This commit is contained in:
Tom Gardham-Pallister
2018-09-20 18:33:00 +01:00
parent 7c0aa6f97e
commit dcc3f0deae
3 changed files with 34 additions and 11 deletions

View File

@ -29,12 +29,12 @@ namespace Ocelot.DependencyInjection
return builder;
}
public static IConfigurationBuilder AddOcelot(this IConfigurationBuilder builder, IHostingEnvironment env = null)
public static IConfigurationBuilder AddOcelot(this IConfigurationBuilder builder, IHostingEnvironment env)
{
return builder.AddOcelot(".", env);
}
public static IConfigurationBuilder AddOcelot(this IConfigurationBuilder builder, string folder, IHostingEnvironment env = null)
public static IConfigurationBuilder AddOcelot(this IConfigurationBuilder builder, string folder, IHostingEnvironment env)
{
const string primaryConfigFile = "ocelot.json";