Skip to content

Instantly share code, notes, and snippets.

@max-mulawa
Created April 28, 2011 19:30
Show Gist options
  • Save max-mulawa/947123 to your computer and use it in GitHub Desktop.
Save max-mulawa/947123 to your computer and use it in GitHub Desktop.
GetLocation Async
IAsyncResult result = _client.BeginGetLocation("Warsaw,Poland",null, null);
//Do some work here
// Wait until the operation completes.
result.AsyncWaitHandle.WaitOne();
List<Location> locations = _client.EndGetLocation(result);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment