Closed davidfowl closed 5 years ago
As for Host.CreateDefaultBuilder(args)
, all its dependencies are in Extensions so how about adding a new package in Hosting called Microsoft.Extensions.Hosting.Defaults
that pulls it together?
As for Host.CreateDefaultBuilder(args), all its dependencies are in Extensions so how about adding a new package in Hosting called Microsoft.Extensions.Hosting.Defaults that pulls it together?
Yep. I'm not sure I love the name but until I find a new one we'll go with that for now.
ConfigureWebHostDefaults
to configure the web specific defaults on the generic host builder.An alternative approach is to add a UseWebHostDefaults that just configures these things so we don't have 2 methods:
Option 1
Option 2
PS: This doesn't do the defaults that aren't specific to the web stuff. We still need to figure out where that goes.