-
-
Save paulbatum/82e5cb9165f40600f87d to your computer and use it in GitHub Desktop.
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
while(true) | |
{ | |
try | |
{ | |
var url = "http://prime.paxsite.com"; | |
var client = new HttpClient(); | |
var response = await client.GetAsync(url); | |
if(response.IsSuccessStatusCode) | |
{ | |
Process.Start(url); | |
} | |
} | |
catch { } | |
await Task.Delay(1000); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment