Skip to content

Instantly share code, notes, and snippets.

@emrekizildas
Created November 21, 2020 21:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emrekizildas/6f50549571a0a9dfee82c562181502a6 to your computer and use it in GitHub Desktop.
Save emrekizildas/6f50549571a0a9dfee82c562181502a6 to your computer and use it in GitHub Desktop.
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureAppConfiguration((host, config) =>
{
config.AddJsonFile("ocelot.json");
})
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment