Add an extension method to add Dapr HTTP Client to service collection
Open
documentation
help wanted
- Dominant language
- C#
- Stars
- 1.2k
- Forks
- 378
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 5
Description
## Describe the proposal
Currently, we can call the CreateInvokeHttpClient from DaprClient to create a preconfigured HttpClient. It would be great to leverage the IHttpClientFactory of ASP.NET Core with the same level of integration as the CreateInvokeHttpClient.
In short, there's how it could be used :
`services.AddDaprHttpClient("appId");`
I've created a PR to see how it could be implemented.
Contributor guide
Assessment
This issue has not been assessed yet.