Created
June 4, 2018 11:57
-
-
Save rexcfnghk/1cc9895994ce325bd814a9cc63ec0711 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public class Foo | |
{ | |
private readonly HttpClient _httpClient; | |
public Foo(HttpClient httpClient) | |
=> _httpClient = httpClient; | |
public async Task<Bar> GetBarAsync() | |
{ | |
await _httpClient.PostAsync(/* Some message */); | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment