Skip to content

Instantly share code, notes, and snippets.

@gistlyn
Last active July 31, 2016 07: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 gistlyn/2dbd4ccff70851ce8ae55678f4f15d0a to your computer and use it in GitHub Desktop.
Save gistlyn/2dbd4ccff70851ce8ae55678f4f15d0a to your computer and use it in GitHub Desktop.
Add ServiceStack Reference
using System.Linq;
using ServiceStack;
using ServiceStack.Text;
var client = new JsonServiceClient("{BaseUrl}");
//Call {Domain} APIs by sending typed Request DTO's
var response = client.Get(new RequestDto { });
//response.PrintDump(); // Uncomment to Print Response to Console
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="ServiceStack.Client" version="4.0.60" targetFramework="net45" />
<package id="ServiceStack.Interfaces" version="4.0.60" targetFramework="net45" />
<package id="ServiceStack.Text" version="4.0.60" targetFramework="net45" />
</packages>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment