Microsoft.WindowsAzure.Commands.Utilities.CloudService.ServiceSettings.GetDefaultLocation C# (CSharp) Method

GetDefaultLocation() private static method

private static GetDefaultLocation ( string localLocation, string location ) : string
localLocation string
location string
return string
        private static string GetDefaultLocation(string localLocation, string location)
        {
            // If user supplied value as parameter then return it
            //
            if (!string.IsNullOrEmpty(location))
            {
                return location.ToLower();
            }
            
            // User already has value in local service settings
            //
            if (!string.IsNullOrEmpty(localLocation))
            {
                return localLocation.ToLower();
            }

            // If none of previous succeed, get the default environment location.
            //
            return DefaultLocation;
        }