Beispiel #1
0
        private void KeepAliveThread_DoWork(object sender, DoWorkEventArgs e)
        {
            while (ConsoleAPI.GetKeepAliveStatus() && !KeepAliveThread.CancellationPending)
            {
                _wait.WaitOne(10000, false);
                _wait.Reset();
            }

            lock (ConsoleAPI._lock_obj)
            {
                ConnectionParams.Instance.Status    = LoginStatus.Disconncted;
                ConnectionParams.Instance.SessionID = string.Empty;
            }

            e.Result = KeepAliveThread.CancellationPending;
        }
Beispiel #2
0
 public void LogOut()
 {
     string res = ConsoleAPI.Disconnect();
 }