Пример #1
0
        public string GetAvailableInstanceIP()
        {
            string availableIP = string.Empty;
            int    index       = 1;

            do
            {
                availableIP = _instanceRepository.GetAvailableInstanceIP();
                Thread.Sleep(TimeSpan.FromSeconds(10 * index));
                index++;
            } while (string.IsNullOrEmpty(availableIP) && index < 10);
            return(availableIP);
        }