What is the purpose of ConfigureServices in ASp.net Core 1.0?

 Posted by Rajnilari2015 on 8/9/2016 | Category: ASP.NET Core Interview questions | Views: 208 | Points: 40
Answer:

ConfigureServices defines the services used by the application like ASP.NET MVC Core framework, Entity Framework Core, CORS,Logging, MemoryCaching etc.
E.g.

public void ConfigureServices(IServiceCollection services)

{
// Add framework services.
services.AddApplicationInsightsTelemetry(Configuration);

services.AddMvc();
}


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response