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 has been archived by the owner on Dec 19, 2018. It is now read-only.
From what I can tell the generic HostBuilder currently does not have the same Startup class pattern that the WebHostBuilder uses. Personally I like the separation of concerns there since with the WebHostBuilder all the logic that deals with the host itself is maintained inside Program.cs, while the Startup class deals only with your app. In the HostBuilder model these concerns are intertwined inside Program.cs.
Was this a deliberate choice, or is it still open for discussion?
The text was updated successfully, but these errors were encountered:
Startup is ASP.NET specific, the Configure method builds a http request processing pipeline. It's not clear what a generic version of this would look like.
Startup requires two service containers, one from the host to instantiate it, and a second for the app with the results of ConfigureServices. This dual container model has caused a lot of confusion with the current stack so we want to avoid it in the generic stack.
That said, we're not moving web apps over to the generic host for a while yet and we'll likely need at least some compat shims for Startup when we do migrate. Here's the generic web host prototype:
From what I can tell the generic HostBuilder currently does not have the same Startup class pattern that the WebHostBuilder uses. Personally I like the separation of concerns there since with the WebHostBuilder all the logic that deals with the host itself is maintained inside Program.cs, while the Startup class deals only with your app. In the HostBuilder model these concerns are intertwined inside Program.cs.
Was this a deliberate choice, or is it still open for discussion?
The text was updated successfully, but these errors were encountered: