Difference between ihost vs ihostbuilder vs ihostedservice?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Alkesh BijarniyaRank #237 · 10.4K reputationPosted Sep 23, 2022, 2:08 AM EDT
https://learn.microsoft.com/en-us/dotnet/core/extensions/generic-host
Rajeev KumarRank #1,334 · 1.3K reputationPosted Mar 3, 2023, 2:13 AM EST
IWebHost: The web host is the general thing that hosts and runs your web application. It gets created when your application starts up, and then it will construct all the necessary pieces, like the Kestrel web server, the application middleware pipeline, and all the other bits, and connects them, so that your application is ready to serve your requests.The web host builder is basically a factory to create a web host. It is the thing that constructs the web host but also configures all the necessay bits the web host needs to determine how to run the web application.