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;
}