예제 #1
0
 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();
 }
예제 #2
0
 protected void Application_Start()
 {
     MapperInit.InitMapping();
     GlobalConfiguration.Configure(WebApiConfig.Register);
 }