public void SetFromAlias(ServerAlias alias) { tbAliasName.Text = alias.Name; CopyInstance(alias.SessionInfo, _sessionInfo); SessionInfoPropertyGrid.Refresh(); cbIsUserAlias.Checked = alias.IsUserAlias; InProcessAlias inProcess = alias as InProcessAlias; ConnectionAlias connection = alias as ConnectionAlias; if (inProcess != null) { tcAliasType.SelectedTab = tpInProcessAlias; _cbInProcessInstanceName.Text = inProcess.InstanceName; cbEmbedded.Checked = inProcess.IsEmbedded; } else { tcAliasType.SelectedTab = tpConnectionAlias; tbHost.Text = connection.HostName; cbInstanceName.Text = connection.InstanceName; OverridePortNumber = connection.OverridePortNumber; SecurityMode = connection.SecurityMode; OverrideListenerPortNumber = connection.OverrideListenerPortNumber; ListenerSecurityMode = connection.ListenerSecurityMode; tbEndpointConfigurationName.Text = connection.ClientConfigurationName; cbClientSideLogging.Checked = connection.ClientSideLoggingEnabled; } }
public NativeCLIClient(string hostName, string instanceName, int overridePortNumber, ConnectionSecurityMode securityMode, int overrideListenerPortNumber, ConnectionSecurityMode listenerSecurityMode) : base(new Uri(GetNativeServerURI(hostName, instanceName, overridePortNumber, overrideListenerPortNumber))) { _hostName = hostName; _instanceName = instanceName; _overridePortNumber = overridePortNumber; _securityMode = securityMode; _overrideListenerPortNumber = overrideListenerPortNumber; _listenerSecurityMode = listenerSecurityMode; }
public ClientServer(string hostName, string instanceName, int overridePortNumber, ConnectionSecurityMode securityMode, int overrideListenerPortNumber, ConnectionSecurityMode listenerSecurityMode) { _hostName = hostName; _instanceName = instanceName; _overridePortNumber = overridePortNumber; _securityMode = securityMode; _overrideListenerPortNumber = overrideListenerPortNumber; _listenerSecurityMode = listenerSecurityMode; #if SILVERLIGHT System.Net.WebRequest.RegisterPrefix("http://", System.Net.Browser.WebRequestCreator.ClientHttp); System.Net.WebRequest.RegisterPrefix("https://", System.Net.Browser.WebRequestCreator.ClientHttp); #endif Open(); }
public NativeCLIClient(string hostName, string instanceName, int overridePortNumber, ConnectionSecurityMode securityMode) : this(hostName, instanceName, overridePortNumber, ConnectionSecurityMode.Default, 0, securityMode) { }
public NativeStatelessCLIClient(string hostName, string instanceName, int overridePortNumber, ConnectionSecurityMode securityMode, int overrideListenerPortNumber, ConnectionSecurityMode listenerSecurityMode) : base(hostName, instanceName, overridePortNumber, securityMode, overrideListenerPortNumber, listenerSecurityMode) { }
public NativeSessionCLIClient(string hostName, string instanceName, int overridePortNumber, ConnectionSecurityMode securityMode) : base(hostName, instanceName, overridePortNumber, securityMode) { }
public NativeCLISession(string hostName, string instanceName, int overridePortNumber, ConnectionSecurityMode securityMode, int overrideListenerPortNumber, ConnectionSecurityMode listenerSecurityMode, NativeSessionInfo nativeSessionInfo) { _nativeCLI = new NativeSessionCLIClient(hostName, instanceName, overridePortNumber, securityMode, overrideListenerPortNumber, listenerSecurityMode); _nativeSessionInfo = nativeSessionInfo; _sessionHandle = _nativeCLI.StartSession(nativeSessionInfo); }