public virtual bugCollection GetBugs(int[] bugIDs)
        {
            var bugCollection = new bugCollection();

            bugCollection.AddRange(Bugs.Distinct(new BugComparer()).Where(x => bugIDs.Contains(int.Parse(x.bug_id))).Select(x => x).ToArray());
            return(bugCollection);
        }
Beispiel #2
0
        private void CreateBugsInTargetProcess(bugCollection bugCollection)
        {
            var bugs = bugCollection.Cast <bug>().ToList();

            foreach (var bug in bugs)
            {
                _bus.SendLocal(new ImportBugToTargetProcessCommand <BugzillaBug> {
                    ThirdPartyBug = new BugzillaBug(bug)
                });
            }
        }
Beispiel #3
0
 private bool TryGetChangedBugsChunk(int[] ids, out bugCollection bugs)
 {
     try
     {
         bugs = _bugzillaService.GetBugs(ids);
         return(true);
     }
     catch (Exception e)
     {
         _logger.ErrorFormat("Retrieving changed bugs (with ids: {0}) failed. Bugzilla IDs: {1}",
                             string.Join(",", ids.Select(i => i.ToString()).ToArray()), e.Message);
         bugs = new bugCollection();
         return(false);
     }
 }