Created
March 7, 2014 02:07
-
-
Save jamesmontemagno/9403703 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 HttpClientHelper : IHttpClientHelper | |
{ | |
private HttpMessageHandler handler; | |
public HttpMessageHandler MessageHandler | |
{ | |
get { return handler ?? (handler = new OkHttpNetworkHandler()); } | |
} | |
} |
This file contains hidden or 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 HttpClientHelper : IHttpClientHelper | |
{ | |
private HttpMessageHandler handler; | |
public HttpMessageHandler MessageHandler | |
{ | |
get { return handler ?? (handler = new AFNetworkHandler()); } | |
} | |
} |
This file contains hidden or 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 interface IHttpClientHelper | |
{ | |
HttpMessageHandler MessageHandler { get; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment