Created
June 29, 2019 03:21
-
-
Save dontpaniclabsgists/c3a1dc5adbf85644be6dc54cf0acdb40 to your computer and use it in GitHub Desktop.
Custom Configuration Sections 2
This file contains hidden or 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
var serverAddress = ConfigurationManager.AppSettings["Server"]; | |
if ( !IsAlive(serverAddress) ) | |
{ | |
// Uh oh, dead server! Do something! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment