Created
February 29, 2016 08:37
-
-
Save NicoVermeir/7084272960ca5eb8520a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RestClient | |
{ | |
private static HttpClient _client; | |
public static HttpClient GetClientInstance() | |
{ | |
if (_client == null) | |
_client = new HttpClient(); | |
return _client; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment