Created
July 9, 2020 00:59
-
-
Save PradeepLoganathan/07edc3edff39c2cfc3a5c1afbaa3751c to your computer and use it in GitHub Desktop.
Configure httpclientfactory to create httpclient for http2
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
| services.AddHttpClient<ICandidateService, CandidateService>(client => | |
| { | |
| client.BaseAddress = new Uri("https://localhost:5001"), | |
| client.DefaultRequestVersion = new Version(2, 0) | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment