示例#1
0
        private IReadOnlyCollection <ScanResults> ExecuteScan(string scanId)
        {
            return(ExecutionWrapper.ExecuteCommand(() =>
            {
                _scanTools.OutputFileHelper.SetScanId(scanId);

                return SnapshotCommand.Execute(_config, _scanTools);
            }));
        }
示例#2
0
 /// <summary>
 /// See <see cref="IScanner.Scan"/>
 /// </summary>
 /// <returns></returns>
 public ScanResults Scan()
 {
     return(SnapshotCommand.Execute(_config, _scanTools));
 }