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(); } }
private void DisconnectClients() { if (VncConnected) { _client.Disconnect(); _client = null; } if (SshConnected) { _sshManager.Disconnect(); } }