-
-
Save shahriarhossain/00bed431cd5226b53429 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
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