public ScannerContext(ScanSettings settings, IScanComparer comparer, int bufferSize) { Contract.Requires(settings != null); Contract.Requires(comparer != null); Contract.Requires(bufferSize >= 0); Contract.Ensures(Buffer != null); Contract.Ensures(Worker != null); EnsureBufferSize(bufferSize); Worker = new ScannerWorker(settings, comparer); }
public Scanner(RemoteProcess process, ScanSettings settings) { Contract.Requires(process != null); Contract.Requires(settings != null); stores = new CircularBuffer <ScanResultStore>(3); this.process = process; Settings = settings; isFirstScan = true; }
public ComplexScannerWorker(ScanSettings settings, IComplexScanComparer comparer) { this.settings = settings; this.comparer = comparer; }