Exemple #1
0
 private void Run()
 {
     if (_ignoreSearchServers)
     {
         agentServerList = _environment.GetPoolAgentServerList(_poolId);
     }
     else
     {
         agentServerList = _environment.GetPoolAgentServerListNoDtSearch(_poolId);
     }
     foreach (AgentServer agent in agentServerList)
     {
         GetSpotsPerServer getSpotsPerServer    = new GetSpotsPerServer(_eddsDbContext, _environment, agent.ArtifactID, _adjustmentFactor);
         SpotsPerServer    spotsPerServerObject = new SpotsPerServer()
         {
             AgentServerArtifactId = agent.ArtifactID,
             Spots = getSpotsPerServer.Spots
         };
         SpotsPerServerList.Add(spotsPerServerObject);
     }
 }