durabletask-hosting
durabletask-hosting copied to clipboard
Enable support for building services with IHostApplicationBuilder
.NET 6 brought new builder types inheriting from IHostApplicationBuilder
that refactor how to developers may build web / console hosts with fewer callbacks: Comparing WebApplicationBuilder to the Generic Host
WebApplicationBuilder : IHostApplicationBuilder
HostApplicationBuilder : IHostApplicationBuilder
The old IHostBuilder
pattern remains supported. A comparision of how both initializations can work is:
|
|
|
|
@pedropaulovc thank you for opening this issue, and I agree that not being compatible with the IHostApplicationBuilder
model is not ideal. After thinking on this, I think my preferred approach would be to move to work off exclusively IServiceCollection
and no longer rely on IHostBuilder
or IHostApplicationBuilder
at all - this will entirely avoid the need to upgrade the Microsoft.Extensions.*
packages.
If you want to take on that work it would be greatly appreciated, as I am not sure when I get around to that.