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() })); } }
public IEnumerableAsync <Event> GetEvents(IEnumerableAsync <Message[]> input) { return(input.SelectMany <Message[], Event>(GetEvents)); }