Exemplo n.º 1
0
 public bool UpdateExecuteStatus(CommandTask commandTask, TaskExceteStatus exceteStatus)
 {
     using (var repo = Repo <CommandTaskRepository>())
     {
         return(repo.UpdateExecuteStatus(commandTask, exceteStatus));
     }
 }
Exemplo n.º 2
0
 public bool UpdateExecuteStatus(CommandTask commandTask, TaskExceteStatus status)
 {
     commandTask.ExecuteStatus = status;
     return(DbContext.SaveChanges() == 1);
 }
Exemplo n.º 3
0
        /// <summary>
        /// 更新任务执行状态
        /// </summary>
        /// <param name="taskGuid">任务GUID</param>
        /// <param name="exceteStatus">任务执行状态</param>
        public static void UpdateTaskExceteStatus(Guid taskGuid, TaskExceteStatus exceteStatus)
        {
            var task = GetTask(taskGuid);

            ProcessInvoke.Instance <CommandTaskProcess>().UpdateExecuteStatus(task, exceteStatus);
        }