Skip to content

Instantly share code, notes, and snippets.

@Layoric
Created August 20, 2015 06:04
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 Layoric/7c2b953cf603226ef92f to your computer and use it in GitHub Desktop.
Save Layoric/7c2b953cf603226ef92f to your computer and use it in GitHub Desktop.
ServiceStack JsonServiceClient GetAsync example snippet
client.GetAsync<CustomersResponse>("/customers").Success(response => {
foreach(var c in response.Customers) {
Console.WriteLine(c.CompanyName);
}
}).Error(exception => {
Console.WriteLine(exception.Message);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment