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);
        }
示例#2
0
        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;
 }