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