dapr / dapr/dotnet-sdk

Add an extension method to add Dapr HTTP Client to service collection

Open
#632 6 comments 1 reaction 1 assignee Claimed by @rynowak View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.