You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
Today it's impossible to get at the HostingContext as an extension method on IWebHostBuilder, this means you can't flow the IHostingEnvironment in your extension methods that hang off the builder.
promote WebHostBuilderContext to abstractions and have it as a property of the builder
provide a UseServices extension that has both WebHostBuilderContext and ServiceCollection. So that at least extensions that are just adding services can do it trivially.
I don't think we need 2 types (maybe that was a typo?). UseServices shouldn't be required to get access to the host context, and it should be called ConfigureServices right?
Today it's impossible to get at the
HostingContext
as an extension method onIWebHostBuilder
, this means you can't flow theIHostingEnvironment
in your extension methods that hang off the builder./cc @JunTaoLuo @glennc
The text was updated successfully, but these errors were encountered: