Example #1
0
        public ActionResult SubmitProcess(string Username, string Code, Guid Compiler, long QuestionId)
        {
            OJer x = new OJer(Username, Code, Compiler, QuestionId, Server.MapPath("/"));

            ThreadPool.QueueUserWorkItem(new WaitCallback(x.Start));
            DB.Dispose();
            //	throw new OJException(.ToString());
            return(RedirectToAction("Status"));
        }
Example #2
0
        public ActionResult SubmitProcess(string code, Guid compiler
                                          , string questionId)
        {
            if (HalfoxUser.Id.IsNullOrEmpty())
            {
                return(RedirectToAction("Index", "Profile"));
            }
            var x = new OJer(HalfoxUser.Id, HalfoxUser.Name,
                             code, compiler, questionId,
                             Server.MapPath("/"));

            ThreadPool.QueueUserWorkItem(x.Start);
            return(RedirectToAction("Status"));
        }