Browse Source

using var while declaring a variable instead of specific type.

pull/702/head
rafsanulhasan 6 years ago
parent
commit
775366adf1
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)
{
IWebHostBuilder builder = WebHost.CreateDefaultBuilder(args);
var builder = WebHost.CreateDefaultBuilder(args);
builder.ConfigureServices(s => s.AddSingleton(builder))
.ConfigureAppConfiguration(ic => ic.AddJsonFile(Path.Combine("configuration", "configuration.json")))
.UseStartup<Startup>();
IWebHost host = builder.Build();
var host = builder.Build();
return host;
}
}


Loading…
Cancel
Save