public static void UpdateTask ( this TaskQueueManager taskQueueManager, TaskProcessorJob job, Exception exception ) { // Sanity. if (null == taskQueueManager) { throw new ArgumentNullException(nameof(taskQueueManager)); } if (null == job) { throw new ArgumentNullException(nameof(job)); } if (null == exception) { throw new ArgumentNullException(nameof(exception)); } // Use the other overload. taskQueueManager.UpdateTask ( job.AppTaskId, MFTaskState.MFTaskStateFailed, exception.ToString() ); }
public static void UpdateTask ( this TaskQueueManager taskQueueManager, TaskProcessorJob job, MFTaskState state, string progressData = "" ) { // Sanity. if (null == taskQueueManager) { throw new ArgumentNullException(nameof(taskQueueManager)); } if (null == job) { throw new ArgumentNullException(nameof(job)); } // Use the default UpdateTask implementation. taskQueueManager.UpdateTask(job.AppTaskId, state, progressData); }