-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Deprecating WebHostBuilder, IWebHost, and WebHost #63480
-
Discussion for announcement aspnet/Announcements#526
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 5 -
🚀 2
Replies: 1 comment 3 replies
-
Why not deprecate HostBuilder as well? Don't you want everyone to move to the new HostApplicationBuilder-based API?
I don't see a point in maintaining anything other than the new HostApplicationBuilder approach. It is superior to the previous method in every way. Having both available is quite confusing.
Beta Was this translation helpful? Give feedback.
All reactions
-
FWIW, I would have had to refactor a lot more tests in some projects if that had been deprecated too 😅
Beta Was this translation helpful? Give feedback.
All reactions
-
😄 1
-
The new interface IHostApplicationBuilder exists in .NET 9 only so it's tough to deprecate HostBuilder and IHostBuilder because many people have never used IHostApplicationBuilder. Going forward though we'll recommand HostApplicationBuilder and IHostApplicationBuilder
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 1
-
Fair enough. Thanks @davidfowl .
Beta Was this translation helpful? Give feedback.