Created
February 21, 2018 15:33
-
-
Save shinkathe/7f5440f98504465bd09bb9c8f0c70c2c to your computer and use it in GitHub Desktop.
Application allows for smart defaults
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public string DbConnectionString => Environment.GetEnvironmentVariable("DB_CONNECTIONSTRING") | |
?? _configuration.GetConnectionString("DB_CONNECTIONSTRING") | |
?? "DevelopmentEnvironmentConnectionString"; | |
public string BasicAuthUserName => Environment.GetEnvironmentVariable("BASICAUTH_USERNAME") | |
?? _configuration["BasicAuth:Username"] | |
?? "admin"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment