Skip to content

Instantly share code, notes, and snippets.

@Layoric
Created August 20, 2015 06:04
Show Gist options
  • Select an option

  • Save Layoric/7c2b953cf603226ef92f to your computer and use it in GitHub Desktop.

Select an option

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