예제 #1
0
 public TaskAgentPoolReference(
     Guid scope,
     Int32 id,
     TaskAgentPoolType poolType = TaskAgentPoolType.Automation)
 {
     this.Id       = id;
     this.Scope    = scope;
     this.PoolType = poolType;
 }
예제 #2
0
        //-----------------------------------------------------------------
        // Configuration
        //-----------------------------------------------------------------

        public Task <List <TaskAgentPool> > GetAgentPoolsAsync(string agentPoolName, TaskAgentPoolType poolType = TaskAgentPoolType.Automation)
        {
            CheckConnection();
            return(_taskAgentClient.GetAgentPoolsAsync(agentPoolName, poolType: poolType));
        }
예제 #3
0
        //-----------------------------------------------------------------
        // Configuration
        //-----------------------------------------------------------------

        public Task <List <TaskAgentPool> > GetAgentPoolsAsync(string agentPoolName = null, TaskAgentPoolType poolType = TaskAgentPoolType.Automation)
        {
            CheckConnection(RunnerConnectionType.Generic);
            return(_genericTaskAgentClient.GetAgentPoolsAsync(agentPoolName, poolType: poolType));
        }