internal static BaseScanner Create(string type, string parameters) { Assert.ArgumentNotNull(type, "type"); Assert.ArgumentNotNull(parameters, "parameters"); BaseScanner oScanner = BaseScanner.Create(type); oScanner.AddParameters(parameters); return(oScanner); }
/// <summary> /// Run the report. It will only requery the Scanner if FlushCache has been used before calling this method. /// </summary> /// <param name="parameters">Not used. Only so it can be called as a ProgressBoxMethod delegate</param> public void Run(params object[] parameters) { if (scannerResults == null) { scannerResults = new ArrayList(); foreach (var scanner in scanners) { BaseScanner oScanner = BaseScanner.Create(scanner.Value.FullType, scanner.Value.ReplacedAttributes); //TODO throw exception if null?? scannerResults.AddRange(oScanner.Scan()); } } Filter(); }