public ProxyListViewModel() { ProxyRegistryProvider proxyRegistryProvider = new ProxyRegistryProvider(); _proxyRegistry = proxyRegistryProvider.GetInstance(); UpdateProxyList(); _proxyRegistry.Proxies.CollectionChanged += Proxies_CollectionChanged; }
public ProxyViewModel(ProxyInfo proxyInfo = null) { ProxyRegistryProvider proxyRegistryProvider = new ProxyRegistryProvider(); _proxyRegistry = proxyRegistryProvider.GetInstance(); this.ProxyInfo = proxyInfo ?? new ProxyInfo(); IsNew = proxyInfo == null; }
public ProxyMiddleware(RequestDelegate next, IProxyRegistry registry) { this.next = next; this.registry = registry; }