private void ShowForWCF() { txAddresPart.Enabled = true; cbProtocol.Enabled = true; txFullAddress.Enabled = true; txPort.Enabled = true; txHost.Enabled = true; cbBinding.Enabled = true; txtServiceConfigurationName.Enabled = false; cbBindingSettingsType.Enabled = true; txtBindingConfigurationName.Enabled = (BindingSettingType == WCFBindingSettingType.UseConfigFile); txtHostNameForPublish.Enabled = true; cbProtocol.Items.Clear(); cbProtocol.Items.Add("net.pipe"); cbProtocol.Items.Add("http"); cbProtocol.Items.Add("https"); cbProtocol.Items.Add("net.p2p"); cbProtocol.Items.Add("net.msmq"); cbProtocol.Items.Add("net.tcp"); AllowedProtocols.Clear(); AllowedProtocols.Add("<none>"); AllowedProtocols.Add("net.pipe"); AllowedProtocols.Add("http"); AllowedProtocols.Add("https"); AllowedProtocols.Add("net.p2p"); AllowedProtocols.Add("net.msmq"); AllowedProtocols.Add("net.tcp"); SetFullAddressFromOther(); }
private void ShowForWCFHttp() { txAddresPart.Enabled = !_fixedAddressPart; cbProtocol.Enabled = true; txFullAddress.Enabled = true; txPort.Enabled = true; txHost.Enabled = true; txtServiceConfigurationName.Enabled = false; cbBindingSettingsType.Enabled = true; txtBindingConfigurationName.Enabled = (BindingSettingType == WCFBindingSettingType.UseConfigFile); txtHostNameForPublish.Enabled = true; WCFBinding = WCFBinding.WSHttpBinding; cbBinding.Enabled = false; cbProtocol.Items.Clear(); cbProtocol.Items.Add("http"); cbProtocol.Items.Add("https"); cbProtocol.Text = "http"; AllowedProtocols.Clear(); AllowedProtocols.Add("http"); AllowedProtocols.Add("https"); SetFullAddressFromOther(); }
private void ShowForWCFTcp() { txFullAddress.Enabled = true; txPort.Enabled = true; txHost.Enabled = true; WCFBinding = WCFBinding.NetTcpBinding; AllowedProtocols.Clear(); AllowedProtocols.Add("net.tcp"); Protocol = "net.tcp"; SetFullAddressFromOther(); }
private void ShowForWCFHttp() { txFullAddress.Enabled = true; txPort.Enabled = true; txHost.Enabled = true; WCFBinding = WCFBinding.WSHttpBinding; Protocol = "http"; AllowedProtocols.Clear(); AllowedProtocols.Add("http"); AllowedProtocols.Add("https"); SetFullAddressFromOther(); }
private void ShowForWCF() { txFullAddress.Enabled = true; txPort.Enabled = true; txHost.Enabled = true; AllowedProtocols.Clear(); AllowedProtocols.Add("<none>"); AllowedProtocols.Add("net.pipe"); AllowedProtocols.Add("http"); AllowedProtocols.Add("https"); AllowedProtocols.Add("net.p2p"); AllowedProtocols.Add("net.msmq"); AllowedProtocols.Add("net.tcp"); SetFullAddressFromOther(); }
//set form for selected remoting mechanism #region ShowForCustomWCF private void ShowForCustomWCF() { txFullAddress.Enabled = false; txHost.Enabled = false; txPort.Enabled = false; WCFBinding = WCFBinding.None; AllowedProtocols.Clear(); AllowedProtocols.Add("<none>"); AllowedProtocols.Add("net.pipe"); AllowedProtocols.Add("http"); AllowedProtocols.Add("https"); AllowedProtocols.Add("net.p2p"); AllowedProtocols.Add("net.msmq"); AllowedProtocols.Add("net.tcp"); SetFullAddressFromOther(); }