Beispiel #1
0
        public ProxyListViewModel()
        {
            ProxyRegistryProvider proxyRegistryProvider = new ProxyRegistryProvider();

            _proxyRegistry = proxyRegistryProvider.GetInstance();

            UpdateProxyList();
            _proxyRegistry.Proxies.CollectionChanged += Proxies_CollectionChanged;
        }
Beispiel #2
0
        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;
 }