### Is there an existing issue for this? - [X] I have searched the existing issues ### Is your feature request related to a problem? Please describe the problem. Context: In some of my company's application we use [`HostingStartup`](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/host/platform-specific-configuration?view=aspnetcore-8.0) to configure optional parts of our application like which database system to use (SqlServer, PostgreSQL, etc), this allows us to support additional database backends without modifying existing code (Open/Closed principle), we also use this to plug in other miscellaneous features like which telemetry sink we use (OTel, LGTM, Azure Monitor, etc) becuase it allows us to conditionally bring in dependencies and conditionally register services. Problem: I want to enrich an Entity Framework context, but I'm unable to do so becuase the [enrich](https://github.com/dotnet/aspire/blob/681f2e754dc849f96abafcd2829783e69155abf1/src/Components/Aspire.Npgsql.EntityFrameworkCore.PostgreSQL/AspireEFPostgreSqlExtensions.cs#L105) method requires access to `IHostApplicationBuilder` which is unavalable inside any of the members of `IWebHostBuilder` (which is provided by [`HostingStartup`](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/host/platform-specific-configuration?view=aspnetcore-8.0)) ### Describe the solution you'd like Either a way to call [enrich](https://github.com/dotnet/aspire/blob/681f2e754dc849f96abafcd2829783e69155abf1/src/Components/Aspire.Npgsql.EntityFrameworkCore.PostgreSQL/AspireEFPostgreSqlExtensions.cs#L105) on any of members exposed by `IWebHostBuilder`. Or a way to obtain the base `IHostApplicationBuilder` to then call the Aspire methods on. Or a way to create a stand-in `IHostApplicationBuilder` from any of the members exposed by `IWebHostBuilder` and then call the Aspire methods on. ### Additional context I can provide a sample application that shows how we are using `HostingStartup` if required. --- [Associated WorkItem - 478451](https://dev.azure.com/msft-skilling/Content/_workitems/edit/478451)