C# Can't answer on PING

Indent by four spaces or

Unless you are threading somewhere your code will be stuck in the while (true)/sleep loop and not process anything else no?