Setting IWebHostBuilder and IWebHost as explicit (instead of var) in BuildWebHost() from the generic OcelotApiGw.
This commit is contained in:
		
							parent
							
								
									12d24ee4b1
								
							
						
					
					
						commit
						c3213df7ed
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user