Example #1
0
 /// <summary>
 /// Implementation of this command
 /// </summary>
 /// <returns>Summary of results: Dois, Subjects, Creators found</returns>
 public override CommandResult Execute()
 {
     var result = new CommandResult(Summary);
     foreach (var dc in ProduceDc())
     {
         result += dc;
     }
 }
Example #2
0
        public static CommandResult operator +(CommandResult lhs, dc rhs)
        {
            var result = new CommandResult("");
            result.Dois.Add(rhs.Doi);
            result.Subjects.AddAll(lhs.Subjects.Union(rhs.Subjects));
            result.Creators.AddAll(lhs.Creators.Union(rhs.Creators));

            return result;
        }
Example #3
0
        public static CommandResult operator +(CommandResult lhs, CommandResult rhs)
        {
            var result = new CommandResult(lhs.Summary + "+" + rhs.Summary);
            result.Dois.AddAll(lhs.Dois.Union(rhs.Dois));
            result.Subjects.AddAll(lhs.Subjects.Union(rhs.Subjects));
            result.Creators.AddAll(lhs.Creators.Union(rhs.Creators));

            return result;
        }
Example #4
0
 public LoggedSearch(SearchCommand search, CommandResult result)
 {
     Search = search;
     Result = result;
 }