private AgentDeploymentInfo LoadAgentDeploymentInfo(int agentId) { AgentInfo agentInfo1 = new AgentManager(this.AgentInfoDal).GetAgentInfo(agentId); if (agentInfo1 != null) { string[] discoveryPluginIds = DiscoveryHelper.GetAgentDiscoveryPluginIds(); return(AgentDeploymentInfo.Calculate(agentInfo1, (IEnumerable <string>)discoveryPluginIds, (string)null)); } AgentDeploymentInfo agentDeploymentInfo = new AgentDeploymentInfo(); AgentInfo agentInfo2 = new AgentInfo(); agentInfo2.set_AgentId(agentId); agentDeploymentInfo.set_Agent(agentInfo2); agentDeploymentInfo.set_StatusInfo(new AgentDeploymentStatusInfo(agentId, (AgentDeploymentStatus)2, "Agent not found.")); return(agentDeploymentInfo); }
// Token: 0x06000917 RID: 2327 RVA: 0x00041AB0 File Offset: 0x0003FCB0 private AgentDeploymentInfo LoadAgentDeploymentInfo(int agentId) { AgentInfo agentInfo = new AgentManager(this.AgentInfoDal).GetAgentInfo(agentId); if (agentInfo != null) { string[] agentDiscoveryPluginIds = DiscoveryHelper.GetAgentDiscoveryPluginIds(); return(AgentDeploymentInfo.Calculate(agentInfo, agentDiscoveryPluginIds, null)); } return(new AgentDeploymentInfo { Agent = new AgentInfo { AgentId = agentId }, StatusInfo = new AgentDeploymentStatusInfo(agentId, AgentDeploymentStatus.Failed, "Agent not found.") }); }