From c3213df7ed1768fc1c14a1fc6dd869fb1bc0ca1a Mon Sep 17 00:00:00 2001 From: Cesar De la Torre Llorente Date: Mon, 14 May 2018 15:48:21 -0700 Subject: [PATCH] Setting IWebHostBuilder and IWebHost as explicit (instead of var) in BuildWebHost() from the generic OcelotApiGw. --- 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 782681901..effd5684e 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) { - 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(); - var host = builder.Build(); + IWebHost host = builder.Build(); return host; } }