private static void ConfigureEnvironment( IConfigurationSection section ) { string environment; if ( section.TryGet( EnvironmentVariableName, out environment ) && !string.IsNullOrEmpty( environment ) ) { Environment = environment; } else { ConfigureEnvironmentFromUserVariable(); } }