예제 #1
0
        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);
        }
예제 #2
0
 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);
 }