private static void KeepAliveTimerProc(object state)
        {
            TwoWayRemotingClientBase client = (TwoWayRemotingClientBase)state;

            // Ping our server
            client.serverInterface.Ping();
        }
        private static void InitializeConnectProc(object state)
        {
            TwoWayRemotingClientBase rClient = (TwoWayRemotingClientBase)state;

            try
            {
                rClient.serverInterface.Connect(rClient, rClient.responseChannelName, rClient.sessionKey, rClient.username, rClient.password);
            }
            catch (Exception e)
            {
                WOSI.Utilities.EventUtils.FireAsyncEvent(rClient.ConnectionDenied, rClient, new ConnectionRequestResultEventArgs(false, "The server is currently unavailable or does not exist."));
            }
        }