Esempio n. 1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            GlobalConfiguration.Configure(WebApiConfig.Register);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            TemplateManager.Init(GetPath("AugerTemplateDir"));
            SubmissionRepository.Init(GetPath("AugerSubmissionDir"));
            WorkRepository.Init(GetPath("AugerWorkDir"));
            PlaygroundRepository.Init(GetPath("AugerPlaygroundDir"));
            TempDir.Init(GetPath("AugerTempDir"));
            //TemplateManager.Init(Server.MapPath("~/app_data/templates/"));
            //SubmissionRepository.Init(Server.MapPath("~/app_data/repo/"));
            //WorkRepository.Init(Server.MapPath("~/app_data/work/"));
            //PlaygroundRepository.Init(Server.MapPath("~/app_data/play/"));
            //TempDir.Init(Server.MapPath("~/app_data/temp/"));

            //HostingEnvironment.RegisterVirtualPathProvider(new RepositoryVPP());

            HttpContext.Current.Server.ScriptTimeout = 2400;
        }
Esempio n. 2
0
 protected void Session_End()
 {
     TempDir.EndSession(this.Session);
 }
Esempio n. 3
0
 protected void Session_Start()
 {
     TempDir.InitSession(this.Session);
 }