コード例 #1
0
 private IAsyncPipe <int, int> CreateAsyncPipe(IPipeBuilder <int, int> builder)
 {
     return(builder.AsyncPipe()
            .Executor(async(model, cache) =>
     {
         await Task.Delay(1000);
         return PipeResult <int>
         .DefaultSuccessful
         .SetValue(model);
     })
            .Add()
            .Return((model, results) => results[0]));
 }