Skip to content

Instantly share code, notes, and snippets.

@jamesmontemagno
Created March 7, 2014 02:07
Show Gist options
  • Save jamesmontemagno/9403703 to your computer and use it in GitHub Desktop.
Save jamesmontemagno/9403703 to your computer and use it in GitHub Desktop.
public class HttpClientHelper : IHttpClientHelper
{
private HttpMessageHandler handler;
public HttpMessageHandler MessageHandler
{
get { return handler ?? (handler = new OkHttpNetworkHandler()); }
}
}
public class HttpClientHelper : IHttpClientHelper
{
private HttpMessageHandler handler;
public HttpMessageHandler MessageHandler
{
get { return handler ?? (handler = new AFNetworkHandler()); }
}
}
public interface IHttpClientHelper
{
HttpMessageHandler MessageHandler { get; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment