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);
        }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
 public ComplexScannerWorker(ScanSettings settings, IComplexScanComparer comparer)
 {
     this.settings = settings;
     this.comparer = comparer;
 }