Exemplo n.º 1
0
 public static ICaseTemporary Case <T>(ReadableChannel <T> channel, Func <Task> callback, Func <T, bool> additionalAcceptanceTest = null)
 {
     return(new CaseTemporary <T>(channel, ToFuncTTaskConverter.Convert <T>(callback), additionalAcceptanceTest));
 }
Exemplo n.º 2
0
 public DispatchContext Case <T>(ReadableChannel <T> channel, Func <Task> callback, Func <T, bool> additionalAcceptanceTest = null)
 {
     return(Case(channel, ToFuncTTaskConverter.Convert <T>(callback), additionalAcceptanceTest));
 }