Ejemplo n.º 1
0
        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());
        }
Ejemplo n.º 2
0
 public ConditionalInversion(IReleasePredicate predicate)
 {
     wrappedPredicate = predicate;
 }