public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) { MapperInit.InitMapping(); app.UseExceptionless("riuCGjWnRDEXcvLASaeRHVdYE9OxHyFtb9SBXPvU"); app.UseMiddleware <ExceptionHandlerMiddleWare>(); app.UseCors(builder => builder .AllowAnyOrigin() .AllowAnyMethod() .AllowAnyHeader()); app.UseMvc(); }
protected void Application_Start() { MapperInit.InitMapping(); GlobalConfiguration.Configure(WebApiConfig.Register); }