Exemple #1
0
 public static CTasks.Task.Handleable ToTaskHandle(this CTasks.Exec.Handleable handle, int defState = 0, Exception[] defExceptions = null)
 => (state, exceptions) => handle(defState, defExceptions);
Exemple #2
0
 /* -------- To Task-Handleable (From Handleable) -------- */
 public static CTasks.Task.Handleable ToTaskHandle(this CTasks.Exec.Handleable handle)
 => (state, exceptions) => handle(state, exceptions);
Exemple #3
0
 public static CTasks.Exec.Executable ToExec(this CTasks.Exec.Handleable handle, int defState = 0, Exception[] defExceptions = null)
 => () => handle(defState, defExceptions);
Exemple #4
0
 public static CTasks.Exec.Executable <T> ToGExec <T>(this CTasks.Exec.Handleable handle, int defState = 0, Exception[] defExceptions = null)
 => (obj) => handle(defState, defExceptions);
Exemple #5
0
 public static CTasks.Task.Executable <T> ToGTask <T>(this CTasks.Exec.Handleable handle, int defState = 0, Exception[] defExceptions = null)
 => (obj) => {
     handle(defState, defExceptions);
     return(null);
 };