简体   繁体   中英

in asp.net core mvc (dotnet 5) in startup.cs when ConfigureServices and Configure method called?

are ConfigureServices and Configure methods called with every http request or is it in another way?

From this ,

ConfigureServices and Configure are called by the ASP.NET Core runtime when the app starts

The ConfigureServices method is called by the host before the Configure method to configure the app's services.

Read this answer to know more.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM