From 775366adf17cf2adb4fdd34a5f8eb6b33b862835 Mon Sep 17 00:00:00 2001 From: rafsanulhasan Date: Tue, 14 Aug 2018 05:25:08 +0600 Subject: [PATCH] using var while declaring a variable instead of specific type. --- src/ApiGateways/ApiGw-Base/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ApiGateways/ApiGw-Base/Program.cs b/src/ApiGateways/ApiGw-Base/Program.cs index effd5684e..782681901 100644 --- a/src/ApiGateways/ApiGw-Base/Program.cs +++ b/src/ApiGateways/ApiGw-Base/Program.cs @@ -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(); - IWebHost host = builder.Build(); + var host = builder.Build(); return host; } }