public ProxyProperty(HttpWebClientProtocol proxy) : base(new System.Type[] { typeof(ProxyProperties) }, "Proxy") { this.proxy = proxy; this.proxyProperties = new ProxyProperties(proxy); }
public ProxyProperty(HttpWebClientProtocol proxy) : base(new Type[] { typeof(ProxyProperties) }, "Proxy") { this.proxy = proxy; proxyProperties = new ProxyProperties(proxy); }
public void OnNewWebServiceAdded(object sender, NewWebServiceAddedEventArgs e) { var type = e.Type; HttpWebClientProtocol proxy = (HttpWebClientProtocol)Activator.CreateInstance(type); proxy.Credentials = CredentialCache.DefaultCredentials; SoapHttpClientProtocol protocol2 = proxy as SoapHttpClientProtocol; if (protocol2 != null) { protocol2.CookieContainer = new CookieContainer(); protocol2.AllowAutoRedirect = true; } WsdlModel.Proxy = proxy; // DataGridView var proxyProperties = new ProxyProperties(proxy); proxyProperties.NickName = "Default"; if (!proxyUrlHistory.Contains(proxyProperties)) proxyUrlHistory.Add(proxyProperties); proxyDataGridView.Content = proxyUrlHistory; // Proxy Property Grid if (proxyPropertyGrid != null) proxyPropertyGrid.Content = proxyProperties; foreach (var history in proxyUrlHistory) { if (history.lastSelected) { proxyPropertyGrid.Content = history; history.UpdateProxy(WsdlModel.Proxy); break; } } }