Beispiel #1
0
 public override IEnumerable <Row> Execute(IEnumerable <Row> rows)
 {
     foreach (User user in MySimpleDal.GetUsers())
     {
         yield return(Row.FromObject(user));
     }
 }
Beispiel #2
0
 protected override async Task ExecuteYield(IAsyncEnumerable <Row> rows, AsyncEnumerator <Row> .Yield yield,
                                            CancellationToken cancellationToken = default)
 {
     foreach (User user in MySimpleDal.GetUsers())
     {
         await @yield.ReturnAsync(Row.FromObject(user));
     }
 }