Browse Source

Setting IWebHostBuilder and IWebHost as explicit (instead of var) in BuildWebHost() from the generic OcelotApiGw.

pull/627/head
Cesar De la Torre Llorente 6 years ago
parent
commit
c3213df7ed
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/ApiGateways/ApiGw-Base/Program.cs

+ 2
- 2
src/ApiGateways/ApiGw-Base/Program.cs View File

@ -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;
}
}


Loading…
Cancel
Save