public void SetupRecurringTask() { RecurringJob.AddOrUpdate(CTE_TaskId, () => TaskType1.Execute("Worker role executed a task"), Cron.Minutely); }
public ActionResult NewTask() { BackgroundJob.Enqueue(() => TaskType1.Execute("Worker role executed a task queued by FRONT!")); return(RedirectToAction("Index")); }