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 }}
Repository navigation
API Proposal: Expose Host.ConfigureDefaults #36003
The ask is to move the IHostBuilder instantiation below out of the new API, so other callers can provide their own IHostBuilder to CreateDefaultBuilder
Activity
analogrelay commentedon Jan 24, 2020
Do you have more specific details on the proposal? This is pretty low on info/details.
analogrelay commentedon Jan 24, 2020
davidfowl commentedon Jan 31, 2020
I had to copy the defaults because I wanted to use a different IHostBuilder implementation https://github.com/davidfowl/FeatherHttp/blob/ee5e2a8a701b73b1e57c5d4df5672fda63366779/src/FeatherHttp/WebApplication.cs#L221.
The request is simple, I’d rather not copy this logic 😬
Dotnet-GitSync-Bot commentedon May 7, 2020
I couldn't figure out the best area label to add to this issue. Please help me learn by adding exactly one area label.
maryamariyan commentedon Oct 22, 2020
API Proposal Summary:
The ask is to move the IHostBuilder instantiation below out of the new API, so other callers can provide their own IHostBuilder to CreateDefaultBuilder
runtime/src/libraries/Microsoft.Extensions.Hosting/src/Host.cs
Line 58 in f7e0069
namespace Microsoft.Extensions.Hosting { public static partial class Host { public static Microsoft.Extensions.Hosting.IHostBuilder CreateDefaultBuilder() { throw null; } public static Microsoft.Extensions.Hosting.IHostBuilder CreateDefaultBuilder(string[] args) { throw null; } + public static Microsoft.Extensions.Hosting.IHostBuilder CreateDefaultBuilder(IHostBuilder builder, string[] args) { throw null; } } }2 remaining items
davidfowl commentedon Jan 21, 2021
Nice!
IEvangelist commentedon Mar 30, 2021
If you're okay with it @maryamariyan and @davidfowl, I'd love to work on this?
davidfowl commentedon Mar 30, 2021
Do it!
Added the ConfigureDefaults API, as an extension method on the IHostB…
Added the `ConfigureDefaults` API, as an extension method of `IHostBu…