Beispiel #1
0
 public static ResponseEngine GetInstance()
 {
     if(instance == null){
         instance = new ResponseEngine();
     }
     return instance;
 }
Beispiel #2
0
 public static ResponseEngine GetInstance()
 {
     if (instance == null)
     {
         instance = new ResponseEngine();
     }
     return(instance);
 }
        public UAEngine()
        {
            Matches = new MatchCollection();
            MatchRWLock = new ReaderWriterLock();
            requestEngine = Secsay.RequestParsingEngine.GetInstance();
            responseEngine = Secsay.ResponseEngine.GetInstance();

            // Load the configuration options
            this.loadSettings();

            // Check for new version of the product
            if (this.Settings.autoCheckForUpdates)
            {
                UpdateManager updateManager = new UpdateManager();
                updateManager.CheckForUpdate(false);
            }

            // Start the "request throttling injection thread"
            FiddlerUtils.RequestManager.Throttle = this.Settings.throttleRequests;
            FiddlerUtils.RequestManager.Delay = this.Settings.throttleDelayPeriod;
            FiddlerUtils.RequestManager.BatchSize = this.Settings.throttleBatchSize;
            FiddlerUtils.RequestManager.Start();
        }
        public UAEngine()
        {
            Matches        = new MatchCollection();
            MatchRWLock    = new ReaderWriterLock();
            requestEngine  = Secsay.RequestParsingEngine.GetInstance();
            responseEngine = Secsay.ResponseEngine.GetInstance();

            // Load the configuration options
            this.loadSettings();

            // Check for new version of the product
            if (this.Settings.autoCheckForUpdates)
            {
                UpdateManager updateManager = new UpdateManager();
                updateManager.CheckForUpdate(false);
            }

            // Start the "request throttling injection thread"
            FiddlerUtils.RequestManager.Throttle  = this.Settings.throttleRequests;
            FiddlerUtils.RequestManager.Delay     = this.Settings.throttleDelayPeriod;
            FiddlerUtils.RequestManager.BatchSize = this.Settings.throttleBatchSize;
            FiddlerUtils.RequestManager.Start();
        }