Skip to content

Instantly share code, notes, and snippets.

@mattbarrett
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattbarrett/773946598cf1fc2e8b7d to your computer and use it in GitHub Desktop.
Save mattbarrett/773946598cf1fc2e8b7d to your computer and use it in GitHub Desktop.
var clientsQuery = from systemStatus in clientService.SystemStatus.Where(s => s == Status.Available)
from clients in clientService.LoadClients()
select clients;
while (true) {
if (_clientService.Status.IsAvailable) {
return _clientService.GetAllClients();
}
Thread.Sleep(2000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment