Beispiel #1
0
 /// <summary>
 /// Runs in background (non-UI) thread, but may execute an action on the UI thread by calling the passed thread invoker.
 /// </summary>
 /// <param name="work">Action to run in the background thread</param>
 /// <returns>Reference to this <c>TaskBuilder</c></returns>
 public TaskBuilder DoWork(TaskWorkHandler work)
 {
     _work = work;
     return(this);
 }
Beispiel #2
0
 /// <summary>
 /// Runs in background (non-UI) thread, but may execute an action on the UI thread by calling the passed thread invoker.
 /// </summary>
 /// <param name="work">Action to run in the background thread</param>
 /// <returns>Reference to this <c>TaskBuilder</c></returns>
 public TaskBuilder DoWork(TaskWorkHandler work)
 {
     _work = work;
     return this;
 }