public List <Release> FindReleases(Arguments arguments, IReleasePredicate filter) { // query must not be started explicitly, execution is already performed by the library var query = client.Repository.Release.GetAll(arguments.ProjectOwner, arguments.ProjectName); filter.Prepare(arguments); // await query results before filtering query.Wait(); return(query.Result .Where(release => filter.Matches(release)) .ToList()); }
public void Prepare(Arguments args) { wrappedPredicate.Prepare(args); performInversion = args.InvertedMatching; }