Erda19
Erda19

Reputation: 11

Configure method startup.cs asp.net core

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

Answers (1)

Jon
Jon

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

Related Questions