Reputation: 11
When i request to the page. Why can't debug in configure method in file startup.cs?
Are configure method run only once when application start?
Upvotes: 0
Views: 599
Reputation: 579
Yes, the Configure method in the Startup class of an ASP.NET Core application executes once at application start-up. It configures the middleware components that control how your app will respond to HTTP requests.
More information on this method can be found here: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/startup?view=aspnetcore-2.1
And here's a nice overview of the ASP.NET Core startup process: https://developer.telerik.com/featured/understanding-asp-net-core-initialization/
Upvotes: 1