Exemplo n.º 1
0
        public List <IAzureEnvironment> ListEnvironments(string name)
        {
            var result = new List <IAzureEnvironment>();
            IAzureEnvironment environment;

            if (string.IsNullOrWhiteSpace(name))
            {
                result.AddRange(_profile.Environments);
            }
            else if (_profile.TryGetEnvironment(name, out environment))
            {
                result.Add(environment);
            }

            return(result);
        }