public void RecreatePermanentTasks(int userId) { var activeImagingServices = new ActiveImagingTaskServices(); var permananentTasks = activeImagingServices.GetAllPermanentTasks(); foreach (var task in permananentTasks) { var computerId = task.ComputerId; activeImagingServices.DeleteActiveImagingTask(task.Id); new Workflows.Unicast(computerId, "permanentdeploy", userId, "").Start(); } }
public void CheckOut(int taskId, int profileId) { var activeImagingTaskServices = new ActiveImagingTaskServices(); var task = activeImagingTaskServices.GetTask(taskId); if (task.Type.Contains("upload")) { } if (task.Type.Contains("unreg")) { activeImagingTaskServices.DeleteUnregisteredOndTask(task.Id); } else { activeImagingTaskServices.DeleteActiveImagingTask(task.Id); } if (task.Type != "multicast" && task.Type != "ondmulticast") { activeImagingTaskServices.SendTaskCompletedEmail(task); } }