public override void Connect(NameValueCollection settings)
        {
            if (remotingClient != null)
                remotingClient.Disconnect();

            remotingClient = null;
            GC.Collect();

            remotingClient = new TcpRemotingClient<ICallButlerManagementInterface>(settings["ChannelName"], settings["Host"], settings["ServiceURI"], Convert.ToInt32(settings["Port"]), Convert.ToInt32(settings["CustomerID"]), Convert.ToInt32(settings["ExtensionNumber"]), settings["Password"]);
            remotingClient.Connect();

            managementInterface = (ICallButlerManagementInterface)remotingClient.RemotingObject;
            bool connected = remotingClient.RemotingObject.IsConnected;
        }
Пример #2
0
        public override void Connect(NameValueCollection settings)
        {
            if (remotingClient != null)
            {
                remotingClient.Disconnect();
            }

            remotingClient = null;
            GC.Collect();

            remotingClient = new TcpRemotingClient <ICallButlerManagementInterface>(settings["ChannelName"], settings["Host"], settings["ServiceURI"], Convert.ToInt32(settings["Port"]), Convert.ToInt32(settings["CustomerID"]), Convert.ToInt32(settings["ExtensionNumber"]), settings["Password"]);
            remotingClient.Connect();

            managementInterface = (ICallButlerManagementInterface)remotingClient.RemotingObject;
            bool connected = remotingClient.RemotingObject.IsConnected;
        }