Esempio n. 1
0
 public ProxyHandler(int port, RuleSetManager ruleSetManager, Action<string> addLogEntry)
 {
     _ruleSetManager = ruleSetManager;
     _addLogEntry = addLogEntry;
     FiddlerApplication.BeforeRequest += BeforeRequest;
     FiddlerApplication.Startup(port, FiddlerCoreStartupFlags.RegisterAsSystemProxy | FiddlerCoreStartupFlags.ChainToUpstreamGateway);
 }
Esempio n. 2
0
 public NetworkWatcher(RuleSetManager ruleSetManager, Action<string> addLogEntry)
 {
     _ruleSetManager = ruleSetManager;
     _addLogEntry = addLogEntry;
     NetworkChange.NetworkAddressChanged += OnNetworkAddressChanged;
 }