示例#1
0
 public void SetupRecurringTask()
 {
     RecurringJob.AddOrUpdate(CTE_TaskId, () => TaskType1.Execute("Worker role executed a task"), Cron.Minutely);
 }
示例#2
0
        public ActionResult NewTask()
        {
            BackgroundJob.Enqueue(() => TaskType1.Execute("Worker role executed a task queued by FRONT!"));

            return(RedirectToAction("Index"));
        }