ASP.NET Core Anatomy - How does UseStartup work?

added by DotNetKicks
2/1/2018 12:00:00 AM

3 Kicks, 293 Views

I was recently explaining to someone the basics of the program flow for an ASP.NET Core application. One of the things included in the templates for ASP.NET Core and used very often is the UseStartup extension method on the IWebHostBuilder. This gets called from our Program.cs when initialising the application.