示例#1
0
 private static void CheckRealService(string ipAddress, int port)
 {
     using (var rd = new RemoteDesktop())
     {
         rd.VncPort     = port;
         rd.GetPassword = new AuthenticateDelegate(() => string.Empty);
         rd.Connect(ipAddress);
         rd.Disconnect();
     }
 }
示例#2
0
 private void DisconnectClients()
 {
     if (VncConnected)
     {
         _client.Disconnect();
         _client = null;
     }
     if (SshConnected)
     {
         _sshManager.Disconnect();
     }
 }