// This method gets called by the runtime. Use this method to add services to the container public void ConfigureServices(IServiceCollection services) { // Add framework services. services.AddApplicationInsightsTelemetry(Configuration); services.AddMvc(); services.AddCors(options => options.AddPolicy("AllowAll", p => p.AllowAnyOrigin() .AllowCredentials() .AllowAnyMethod() .AllowAnyHeader() )); DependencyResolver.ConfigurarIoC(services); services.AddSingleton(_ => Configuration); }