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(); }
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(); }