Ejemplo n.º 1
0
        protected void Application_Start()
        {
            System.Web.Http.GlobalConfiguration.Configuration.Formatters.JsonFormatter.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore;
            System.Web.Http.GlobalConfiguration.Configuration.Formatters.Remove(System.Web.Http.GlobalConfiguration.Configuration.Formatters.XmlFormatter);
            AreaRegistration.RegisterAllAreas();
            System.Web.Http.GlobalConfiguration.Configure(WebApiConfig.Register);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            //Add cntk path
            string pathValue     = Environment.GetEnvironmentVariable("PATH");
            string domainBaseDir = AppDomain.CurrentDomain.BaseDirectory;
            string cntkPath      = domainBaseDir + @"bin\";

            pathValue += ";" + cntkPath;
            Environment.SetEnvironmentVariable("PATH", pathValue);

            HangFireInit.Application_Start();
        }
Ejemplo n.º 2
0
 protected void Application_End()
 {
     HangFireInit.Application_End();
 }