/// <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); }
/// <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; }