Custom service configurations and dependency injections are typically defined in the ________ method of the "Startup.cs" file.

  • ConfigureServices
  • Configure
  • ConfigureServicesAndRun
  • InitializeServices
In an ASP.NET Core application, custom service configurations and dependency injections are typically defined in the "ConfigureServices" method of the "Startup.cs" file. This method is where you configure the application's services, such as adding database contexts, authentication services, or custom services to the Dependency Injection container. It's a crucial part of setting up the application's infrastructure.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *