Class SystemProxyRegistrationManager
System proxy management is static because related to OS management.
public class SystemProxyRegistrationManager
- Inheritance
-
SystemProxyRegistrationManager
- Inherited Members
Constructors
SystemProxyRegistrationManager(ISystemProxySetter)
public SystemProxyRegistrationManager(ISystemProxySetter systemProxySetter)
Parameters
systemProxySetterISystemProxySetter
Methods
GetSystemProxySetting()
Retrieve the current system proxy setting
public Task<SystemProxySetting> GetSystemProxySetting()
Returns
IsRegisteredOn(IEnumerable<IPEndPoint>)
Overload mirroring the selection logic of Register(IEnumerable<IPEndPoint>, ...):
prefers the loopback endpoint when multiple are provided.
public Task<bool> IsRegisteredOn(IEnumerable<IPEndPoint> endPoints)
Parameters
endPointsIEnumerable<IPEndPoint>
Returns
IsRegisteredOn(IPEndPoint)
Returns true only if the OS proxy is currently enabled AND bound to the given endpoint. Unlike GetSystemProxySetting(), this filters out unrelated proxies (corporate, Fiddler, another Fluxzy instance on a different port, ...).
public Task<bool> IsRegisteredOn(IPEndPoint endPoint)
Parameters
endPointIPEndPoint
Returns
Register(IPEndPoint, params string[])
Register the system proxy with the given endPoint and bypass hosts
public Task<SystemProxySetting> Register(IPEndPoint endPoint, params string[] byPassHosts)
Parameters
endPointIPEndPointbyPassHostsstring[]
Returns
UnRegister()
Unregister any previous setting
public Task UnRegister()