private System.Data.DataSet GetAllAgentDetailsRemote() { System.Data.DataSet result = new System.Data.DataSet(); string currentHostAddress = EnableRemoteExecute ? this.RemoteAgentHostAddress : OverrideRemoteAgentHostAddress; int currentHostPort = EnableRemoteExecute ? this.RemoteAgentHostPort : OverrideRemoteAgentHostPort; try { result = RemoteCollectorHostService.GetRemoteHostAllAgentDetails(this, currentHostAddress, currentHostPort); } catch (Exception ex) { if (RunLocalOnRemoteHostConnectionFailure && ex.ToString().Contains("There was no endpoint listening")) { //attempting to run locally result = GetAllAgentDetailsLocal(); } else { throw; } } return(result); }
public System.Data.DataSet GetAllAgentDetailsRemote(string hostAddress, int hostPort) { System.Data.DataSet result = new System.Data.DataSet(); result = RemoteCollectorHostService.GetRemoteHostAllAgentDetails(this, hostAddress, hostPort); return(result); }