C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
.NET
ADO.NET
Android
ASP.NET
C#
Databases & DBA
Design Patterns & Practices
Java
Learn iOS Programming
OOP/OOD
SharePoint
Software Testing
Web Development
WPF
View All
2
Reply
What is Generic Host in .NET Core?
Jayraj Chhaya
1y
3.9k
0
Reply
Delete Row
Delete Column
Insert Link
×
Insert
Cancel
Embed YouTube Video
×
Width (%)
Height (%)
Insert
Cancel
Table Options
×
Rows
Columns
First row as header
Create Table
Insert Image
×
Selected file:
Alignment
Left
Center
Right
Select an image from your device to upload
Upload to Server
Cancel
Submit
The Worker Service templates create a.NET Generic Host, HostApplicationBuilder. The Generic Host can be used with other types of.NET applications, such as Console apps.
harendra karamshil
1y
0
In .NET Core, the Generic Host is a hosting mechanism provided by the Microsoft.Extensions.Hosting namespace. It's designed to simplify the process of building and configuring applications, particularly for services like console applications, Windows services, and ASP.NET Core applications.The Generic Host is built on top of the ASP.NET Core hosting infrastructure and provides a consistent way to configure and run applications regardless of the application type. It encapsulates common application concerns such as configuration, dependency injection, logging, and application lifetime management.Overall, the Generic Host simplifies the process of building and configuring .NET Core applications by providing a consistent and flexible hosting environment. It promotes best practices such as dependency injection, configuration, and logging, making it easier to develop robust and maintainable applications.
Alpesh Maniya
1y
0
Message