// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(IServiceCollection services) { services.AddABusiness(Configuration); services.AddScoped <ExceptionHandlerMiddleware>(); services.AddScoped <IIdentityService, IdentityService>(); services.AddApplicationInsightsTelemetry(Configuration); services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new Info { Title = "Service SomeModel", Version = "v1" }); }); services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2); }