public override FdbAsyncIterator <TSource> Where(Func <TSource, bool> predicate)
 {
     return(FdbAsyncEnumerable.Filter <TSource>(
                m_source,
                m_filter.AndAlso(new AsyncFilterExpression <TSource>(predicate))
                ));
 }
 public override FdbAsyncIterator <TSource> Where(Func <TSource, CancellationToken, Task <bool> > asyncPredicate)
 {
     return(FdbAsyncEnumerable.Filter <TSource>(
                m_source,
                m_filter.AndAlso(new AsyncFilterExpression <TSource>(asyncPredicate))
                ));
 }
Esempio n. 3
0
        public virtual FdbAsyncIterator <TResult> Where([NotNull] Func <TResult, CancellationToken, Task <bool> > asyncPredicate)
        {
            if (asyncPredicate == null)
            {
                throw new ArgumentNullException("asyncPredicate");
            }

            return(FdbAsyncEnumerable.Filter <TResult>(this, new AsyncFilterExpression <TResult>(asyncPredicate)));
        }
Esempio n. 4
0
        public virtual FdbAsyncIterator <TResult> Where([NotNull] Func <TResult, bool> predicate)
        {
            if (predicate == null)
            {
                throw new ArgumentNullException("predicate");
            }

            return(FdbAsyncEnumerable.Filter <TResult>(this, new AsyncFilterExpression <TResult>(predicate)));
        }