示例#1
0
 /// <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;
 }
示例#2
0
 /// <summary>
 /// Marks this task as started
 /// </summary>
 public void Start()
 {
     State = BusTaskState.Started;
 }
示例#3
0
 /// <summary>
 /// Marks this task as finished
 /// </summary>
 public void Finish()
 {
     Finished = DateTime.Now;
     State = BusTaskState.Finished;
 }