예제 #1
0
 public IEnumerableAsync <Message[]> FromChromeDriverLog(IEnumerableAsync <CD.Message[]> messages)
 {
     using (var ctx = new Context())
     {
         return(messages.SelectMany(batch => new [] {
             batch.Select(ctx.FromCDMessage).Where(m => m != null).ToArray()
         }));
     }
 }
예제 #2
0
 public IEnumerableAsync <Event> GetEvents(IEnumerableAsync <Message[]> input)
 {
     return(input.SelectMany <Message[], Event>(GetEvents));
 }