コード例 #1
0
ファイル: ExtUtils.cs プロジェクト: ProDev2/CTaskLib
 public static CTasks.Task.Handleable ToTaskHandle(this CTasks.Exec.Handleable handle, int defState = 0, Exception[] defExceptions = null)
 => (state, exceptions) => handle(defState, defExceptions);
コード例 #2
0
ファイル: ExtUtils.cs プロジェクト: ProDev2/CTaskLib
 /* -------- To Task-Handleable (From Handleable) -------- */
 public static CTasks.Task.Handleable ToTaskHandle(this CTasks.Exec.Handleable handle)
 => (state, exceptions) => handle(state, exceptions);
コード例 #3
0
ファイル: ExtUtils.cs プロジェクト: ProDev2/CTaskLib
 public static CTasks.Exec.Executable ToExec(this CTasks.Exec.Handleable handle, int defState = 0, Exception[] defExceptions = null)
 => () => handle(defState, defExceptions);
コード例 #4
0
ファイル: ExtUtils.cs プロジェクト: ProDev2/CTaskLib
 public static CTasks.Exec.Executable <T> ToGExec <T>(this CTasks.Exec.Handleable handle, int defState = 0, Exception[] defExceptions = null)
 => (obj) => handle(defState, defExceptions);
コード例 #5
0
ファイル: ExtUtils.cs プロジェクト: ProDev2/CTaskLib
 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);
 };