Hello,
This is example for confservice usage for all agent group. It may be help,
public List<CfgAgentGroup> GetAllAgentGroupList()
{
try
{
var query = new CfgAgentGroupQuery(confService)
{
State = CfgObjectState.CFGEnabled,
};
return confService.RetrieveMultipleObjects<CfgAgentGroup>(query).ToList();
}
catch (Exception ex)
{
throw ex;
}
}