Example #1
0
 /// <summary>
 ///     Creates a new Task for the target Dispatcher (default: the main Dispatcher) based upon the given action.
 /// </summary>
 /// <param name="action">The action to process at the dispatchers thread.</param>
 /// <returns>The new task.</returns>
 public CustomTask Dispatch(Action action)
 {
     return(TargetDispatcher.Dispatch(action));
 }
Example #2
0
 /// <summary>
 ///     Dispatches the given task to the target Dispatcher (default: the main Dispatcher).
 /// </summary>
 /// <param name="taskBase">The task to process at the dispatchers thread.</param>
 /// <returns>The new task.</returns>
 public CustomTask Dispatch(CustomTask taskBase)
 {
     return(TargetDispatcher.Dispatch(taskBase));
 }
Example #3
0
 /// <summary>
 ///     Creates a new Task for the target Dispatcher (default: the main Dispatcher) based upon the given function.
 /// </summary>
 /// <typeparam name="T">The return value of the task.</typeparam>
 /// <param name="function">The function to process at the dispatchers thread.</param>
 /// <returns>The new task.</returns>
 public CustomTask <T> Dispatch <T>(Func <T> function)
 {
     return(TargetDispatcher.Dispatch(function));
 }