1.

What Is The Purpose Of Configureservices In Asp.net Core 1.0?

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();

}

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();

}



Discussion

No Comment Found