Exemplo n.º 1
0
 public static IQuestion <Task <TResult> > ToQuestion <TResult>(this ISelectMany <Task <Task <TResult> > > selectMany)
 {
     return(Questions.Create(
                selectMany.Name,
                async actor =>
     {
         var task = await selectMany.Apply(actor);
         return await task;
     }));
 }
Exemplo n.º 2
0
 public static IAction <Task> ToAction(this ISelectMany <Task <Task> > selectMany)
 {
     return(Actions.Create(
                selectMany.Name,
                async actor =>
     {
         var task = await selectMany.Apply(actor);
         await task;
     }));
 }
Exemplo n.º 3
0
 public static IQuestion <TResult> ToQuestion <TResult>(this ISelectMany <TResult> selectMany)
 {
     return(Questions.Create(
                selectMany.Name,
                actor => selectMany.Apply(actor)));
 }