Skip to content

Instantly share code, notes, and snippets.

@shahriarhossain
Created December 9, 2015 09:22
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 shahriarhossain/00bed431cd5226b53429 to your computer and use it in GitHub Desktop.
Save shahriarhossain/00bed431cd5226b53429 to your computer and use it in GitHub Desktop.
interface BaseOperation
{
Task<T> GetAsync<T>(string endpoint) where T : class;
}
public class HttpClientHelper : BaseOperation
{
public async Task<T> GetAsync<T>(string endpoint) where T : class
{
//HttpClient implementation goes here
}
}
public class RestSharpHelper : BaseOperation
{
public async Task<T> GetAsync<T>(string endpoint) where T : class
{
//RestSharp implementation goes here
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment