Exemplo 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);
 }
Exemplo n.º 2
0
 public NetworkWatcher(RuleSetManager ruleSetManager, Action<string> addLogEntry)
 {
     _ruleSetManager = ruleSetManager;
     _addLogEntry = addLogEntry;
     NetworkChange.NetworkAddressChanged += OnNetworkAddressChanged;
 }