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; })); }
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; })); }
public static IQuestion <TResult> ToQuestion <TResult>(this ISelectMany <TResult> selectMany) { return(Questions.Create( selectMany.Name, actor => selectMany.Apply(actor))); }