/// <summary>
        /// Gets information about the pool.
        /// </summary>
        public ClientGroupInfo[] GetInfo()
        {
            lock (clientGroups)
            {
                int idx = 0;
                int cnt = clientGroups.Count;
                ClientGroupInfo[] info = new ClientGroupInfo[cnt];

                foreach (ClientGroup clientGroup in clientGroups.Values)
                {
                    info[idx++] = clientGroup.GetInfo();
                }

                return(info);
            }
        }
Exemple #2
0
 public AzureHDInsightClientGroupInfo(ClientGroupInfo clientGroupInfo = null)
 {
     GroupName = clientGroupInfo?.GroupName;
     GroupId   = clientGroupInfo?.GroupId;
 }