hi
i asked before about the rule of the UseRouting vs UseEndpoints and the answer was that the UseRouting matches the incoming request agaist he predefined route in the route table, my question is know regarding the route table dose routes got added to the route table before the app.Run() executed or after , i asked this question because when i start a debuging session application goes into the application middlewear by middlewear and execute it when then the app.Run() executes and program starts

Amit MohantyPosted Nov 25, 2024, 5:33 AM
During the application start-up process, you add routes to the route table when you define them in Map or in similar methods. When the application runs:
It is a terminal middleware and will only run if no other middleware serves the request.