-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Replace obsolete WebRequest,HttpWebRequest with HttpClient (#…
…720) * refactor: Replace obsolete WebRequest,HttpWebRequest with HttpClient * chore: Reuse the same HttpClient instance across multiple requests. * chore: Review fixes * chore: Move ConfigureAwait(false) to the calling method * fix: Revert disposing of SharedHttpClient * chore: add ConfigureAwait(false) to GetResponse * refactor: Extract method for shared HttpClient initialization * chore: Introduce StartAsync to remove the usage of .Result * chore: Introduce IsRunningAsync method in order to remove the usage of .Result from IsRunning method * chore: add ConfigureAwait(false) to PingAsync calls * chore: make SharedHttpClient a field
- Loading branch information
Showing
1 changed file
with
54 additions
and
19 deletions.
There are no files selected for viewing
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