public FiddlerWindow()
        {
            if (Instance != null) throw new Exception("Can be only one FiddlerWindow instance");
            Instance = this;

            FiddlerHelper.ClearCache();
            FiddlerHelper.StartListening(FIDDLER_PORT);
            this.Closing += (s, e) =>
                                {
                                    FiddlerHelper.StopListening(); 
                                    Instance = null;
                                };

            InitializeComponent();
        }
Exemplo n.º 2
0
        public FiddlerWindow()
        {
            if (Instance != null)
            {
                throw new Exception("Can be only one FiddlerWindow instance");
            }
            Instance = this;

            FiddlerHelper.ClearCache();
            FiddlerHelper.StartListening(FIDDLER_PORT);
            this.Closing += (s, e) =>
            {
                FiddlerHelper.StopListening();
                Instance = null;
            };

            InitializeComponent();
        }