|
|
@ -20,11 +20,11 @@ namespace OcelotApiGw |
|
|
|
|
|
|
|
public static IWebHost BuildWebHost(string[] args) |
|
|
|
{ |
|
|
|
var builder = WebHost.CreateDefaultBuilder(args); |
|
|
|
IWebHostBuilder builder = WebHost.CreateDefaultBuilder(args); |
|
|
|
builder.ConfigureServices(s => s.AddSingleton(builder)) |
|
|
|
.ConfigureAppConfiguration(ic => ic.AddJsonFile(Path.Combine("configuration", "configuration.json"))) |
|
|
|
.UseStartup<Startup>(); |
|
|
|
var host = builder.Build(); |
|
|
|
IWebHost host = builder.Build(); |
|
|
|
return host; |
|
|
|
} |
|
|
|
} |
|
|
|