INTERFACE IHttpClientWrapper
- Namespace: SuCoS.Commands
- Source File: IHttpClientWrapper.cs
Wrapper interface for HttpClient to improve testability.
Public Methods
GetAsync
Task<HttpResponseMessage> GetAsync(Uri uri)
Sends a GET request to the specified URI.
Parameters:
uri(Uri): The URI to send the request to.
Returns: Task<HttpResponseMessage>
- A task representing the asynchronous operation, containing the
HttpResponseMessage.