Пример #1
0
 public static RequestParsingEngine GetInstance()
 {
     if(instance == null){
         instance = new RequestParsingEngine();
     }
     return instance;
 }
Пример #2
0
 public static RequestParsingEngine GetInstance()
 {
     if (instance == null)
     {
         instance = new RequestParsingEngine();
     }
     return(instance);
 }
Пример #3
0
        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();
        }
Пример #4
0
        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();
        }