Using the ConfigureServices and Configure Methods in Startup.cs in asp.net vnext

I would like to better understand the differences between the ConfigureServices and Configure methods in the startup.cs class.
The comparison of the launch class of the starter application and the musicstore application from github seems to be configured in a completely different way, so I do not really understand what the difference is and what needs to be done inside each.

+5
source share
1 answer

The ConfigureServices method is used to configure the DI container and its services. The Configure method is usually used to configure the pipeline.

+8
source

Source: https://habr.com/ru/post/1209529/


All Articles