public ActionResult InitAllTask() { JobManager.AddTask(new DemoJob()); var ret = JobManager.InitJobs(); JobManager.Add(new DemoAbstractJob()); JobManager.AbsInitJobs(); if (!ret) { return(Content("初始化失败")); } var jobsList = JobManager._JobInfos; if (jobsList.Count > 0) { _jobsManagerApp.InitAllJobs(jobsList); } return(Content("初始化完成")); }