Interface IConfiguredQuery<TIn, TOut>
A query that can no longer be configured.
public interface IConfiguredQuery<TIn, TOut>
Type Parameters
TInThe type of items that will be input into this instance.
TOutThe type of items that will be output from this instance.
- Extension Methods
Methods
- ExecuteAsync(CancellationToken)
Executes the query.
- WithFilter(Func<TOut, bool>)
Specifies a filter that will be applied to all results in the query. If the specified delegate returns
true, the row will be included in the results. If it returnsfalse, it will be excluded.
- WithMap<TNext>(Func<TOut, TNext>)
Specifies a mapping that will be used to turn items of type
TOutinto items of typeTNext.
- WithReduce<TResult>(Func<TResult>, Func<TResult, TOut, TResult>)
Specifies a method of reducing many items of type
TOutinto one instance of typeTResult.
- WithReduce<TAccumulate, TResult>(Func<TAccumulate>, Func<TAccumulate, TOut, TAccumulate>, Func<TAccumulate, TResult>)
Specifies a method of reducing many items of type
TOutinto one instance of typeTResult, using one method to accumulate the values into a value of typeTAccumulateand another to turn the accumulated value into a result.