示例#1
0
 static BugzillaChecker GetBugChecker(SearchOptions options)
 {
     if (_bugChecker == null)
     {
         _bugChecker = new BugzillaChecker(options);
         _bugChecker.Setup().Wait();
     }
     return(_bugChecker);
 }
示例#2
0
        static void PrintBug(BugEntry bug, bool potential, SearchOptions options)
        {
            if (!potential)
            {
                Console.WriteLine(FormatBug(bug));
            }
            else
            {
                Console.WriteLine(FormatUncertainBug(bug));
            }

            if (options.AdditionalBugInfo)
            {
                BugzillaChecker checker = new BugzillaChecker(options);
                checker.Setup().Wait();
                string additionalInfo = checker.LookupAdditionalInfo(bug.ID).Result;
                if (additionalInfo != null)
                {
                    Console.WriteLine($"\t{additionalInfo}");
                }
            }
        }