It should be possible to chain multiple .Where() clauses on a single Science object. To do so, the Skip property should be refactored to an IList<Func<bool>> rather than an bool:
internal IList<Func<bool>> Skip { get; } = new List<Func<bool>>();
The predicate should not be executed immediately, but at the time the Science object gets executed. The .Execute() and .ExecuteAsync() methods should check all conditions and break using
It should be possible to chain multiple
.Where()
clauses on a singleScience
object. To do so, theSkip
property should be refactored to anIList<Func<bool>>
rather than anbool
:The predicate should not be executed immediately, but at the time the
Science
object gets executed. The.Execute()
and.ExecuteAsync()
methods should check all conditions and break using