Check remote server status at startup to pre-populate context chooser

This commit is contained in:
baldurk
2016-08-19 17:26:20 +02:00
parent dca8fe7905
commit 0207c74b90
3 changed files with 52 additions and 46 deletions
+1 -15
View File
@@ -170,23 +170,9 @@ namespace renderdocui.Windows.Dialogs
string hostname = node["hostname"] as string;
RemoteHost host = node.Tag as RemoteHost;
string username = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
try
{
RemoteServer server = StaticExports.CreateRemoteServer(hostname, 0);
SetRemoteServerLive(node, true, false);
server.ShutdownConnection();
}
catch (ReplayCreateException ex)
{
if (ex.Status == ReplayCreateStatus.NetworkRemoteBusy)
SetRemoteServerLive(node, true, true);
else
SetRemoteServerLive(node, false, false);
}
(node.Tag as RemoteHost).CheckStatus();
StaticExports.EnumerateRemoteTargets(hostname, (UInt32 i) => {
try