Skip to content

Instantly share code, notes, and snippets.

@NicoVermeir
Created February 29, 2016 08:42
Show Gist options
  • Save NicoVermeir/8a01597d074fed66a107 to your computer and use it in GitHub Desktop.
Save NicoVermeir/8a01597d074fed66a107 to your computer and use it in GitHub Desktop.
public class RestClient
{
private static HttpClient _client;
public static HttpClient GetClientInstance()
{
if (_client == null)
_client = new HttpClient
{
BaseAddress = new Uri(Constants.ApiBaseUrl)
};
return _client;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment