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