예제 #1
0
        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;
            }
        }
예제 #2
0
 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;
 }
예제 #3
0
        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();
        }
예제 #4
0
 public NativeCLIClient(string hostName, string instanceName, int overridePortNumber, ConnectionSecurityMode securityMode) : this(hostName, instanceName, overridePortNumber, ConnectionSecurityMode.Default, 0, securityMode)
 {
 }
예제 #5
0
 public NativeStatelessCLIClient(string hostName, string instanceName, int overridePortNumber, ConnectionSecurityMode securityMode, int overrideListenerPortNumber, ConnectionSecurityMode listenerSecurityMode) : base(hostName, instanceName, overridePortNumber, securityMode, overrideListenerPortNumber, listenerSecurityMode)
 {
 }
예제 #6
0
 public NativeSessionCLIClient(string hostName, string instanceName, int overridePortNumber, ConnectionSecurityMode securityMode) : base(hostName, instanceName, overridePortNumber, securityMode)
 {
 }
예제 #7
0
 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);
 }