/// <summary> /// Sets a possible found error. /// </summary> /// <param name="error">The error of type <see cref="Exception"/></param> public void SetError(Exception error) { Error = error.Message; State = BusTaskState.Error; }
/// <summary> /// Marks this task as started /// </summary> public void Start() { State = BusTaskState.Started; }
/// <summary> /// Marks this task as finished /// </summary> public void Finish() { Finished = DateTime.Now; State = BusTaskState.Finished; }