public TaskAgentPoolReference( Guid scope, Int32 id, TaskAgentPoolType poolType = TaskAgentPoolType.Automation) { this.Id = id; this.Scope = scope; this.PoolType = poolType; }
//----------------------------------------------------------------- // Configuration //----------------------------------------------------------------- public Task <List <TaskAgentPool> > GetAgentPoolsAsync(string agentPoolName, TaskAgentPoolType poolType = TaskAgentPoolType.Automation) { CheckConnection(); return(_taskAgentClient.GetAgentPoolsAsync(agentPoolName, poolType: poolType)); }
//----------------------------------------------------------------- // Configuration //----------------------------------------------------------------- public Task <List <TaskAgentPool> > GetAgentPoolsAsync(string agentPoolName = null, TaskAgentPoolType poolType = TaskAgentPoolType.Automation) { CheckConnection(RunnerConnectionType.Generic); return(_genericTaskAgentClient.GetAgentPoolsAsync(agentPoolName, poolType: poolType)); }