public int StartDeployingAgent(AgentDeploymentSettings settings)
        {
            AgentDeployer.log.Debug((object)"StartDeployingAgent entered");
            AgentDeploymentWatcher instance = AgentDeploymentWatcher.GetInstance(this.agentInfoDal);

            instance.Start();
            int agentId = this.DeployAgent(settings);

            instance.AddOrUpdateDeploymentInfo(AgentDeploymentInfo.Calculate(new AgentManager(this.agentInfoDal).GetAgentInfo(agentId), (IEnumerable <string>)settings.get_RequiredPlugins(), (string)null));
            this.DeployMissingPlugins(agentId, (IEnumerable <string>)settings.get_RequiredPlugins());
            return(agentId);
        }
Beispiel #2
0
        // Token: 0x06000901 RID: 2305 RVA: 0x00040F7C File Offset: 0x0003F17C
        public int StartDeployingAgent(AgentDeploymentSettings settings)
        {
            AgentDeployer.log.Debug("StartDeployingAgent entered");
            AgentDeploymentWatcher instance = AgentDeploymentWatcher.GetInstance(this.agentInfoDal);

            instance.Start();
            int       num       = this.DeployAgent(settings);
            AgentInfo agentInfo = new AgentManager(this.agentInfoDal).GetAgentInfo(num);

            instance.AddOrUpdateDeploymentInfo(AgentDeploymentInfo.Calculate(agentInfo, settings.RequiredPlugins, null));
            this.DeployMissingPlugins(num, settings.RequiredPlugins);
            return(num);
        }