12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using iBemsDataService.Controllers.Fms.WorkManagement.ScheduledTask;
- using iBemsDataService.Controllers.Bems.ScheduledTask;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Http;
- using System.Web.Security;
- using System.Web.SessionState;
- using WebODataDataService;
- namespace iBemsDataService
- {
- public class Global : System.Web.HttpApplication
- {
- protected void Application_Start()
- {
- //GlobalConfiguration.Configuration.Formatters.Remove(GlobalConfiguration.Configuration.Formatters.XmlFormatter);
- //GlobalConfiguration.Configuration.Formatters.JsonFormatter.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore;
- GlobalConfiguration.Configure( WebApiConfig.Register );
- //2016 02 29 hcLee
- //GlobalConfiguration.Configuration.Formatters.JsonFormatter.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore;
- //GlobalConfiguration.Configuration.Formatters.Remove( GlobalConfiguration.Configuration.Formatters.XmlFormatter );
- // TODO : 아래는 서비스 시작시 작업 스케줄러 강제 실행 코드
- // TODO : Production 에서는 아래 코드 삭제 할 것
- WorkExecutionPlanJob tempJob = new WorkExecutionPlanJob();
- tempJob.Execute(null);
- FmsWorkManagementJobScheduler.Start();
- BemsScheduler.Start();
- //ControlBems cb = new ControlBems();
- //cb.Execute(null);
- }
- protected void Application_BeginRequest( object sender , EventArgs e )
- {
- iBemsDataService.CorsSupport.HandlePreflightRequest( HttpContext.Current );
- }
- }
- }
|