Configuring ASPNET Core Apps with WebHostBuilder

added by DotNetKicks
9/9/2016 4:39:14 PM

2 Kicks, 560 Views

In ASP.NET Core apps, you typically configure the application in Startup. However, the application itself runs inside of a host, which is configured separately using a WebHostBuilder. Although it's not the default, recommended case (and thus isn't shown in the official docs), you can actually configure the application directly from WebHostBuilder and avoid using a Startup class entirely (or augment what Startup is able to do).