dapr / dapr/dotnet-sdk

How InvokeMethodGrpcAsync Passes Request Headers More Elegantly

Open
#1,075 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.2k
Forks
378
Avg merge
2d 1h
Merged PRs (30d)
6

Description

## Ask your question here

If InvokeMethodGrpcAsync is used, the requests from service A -> sidecar and sidecar -> B should be gRpc communication, but currently InvokeMethodGrpcAsync does not provide custom Headers, I saw a similar problem: [#852](https://github.com/dapr/dotnet-sdk/issues/852), through [CreateInvocationInvoker](https://github.com/dapr/dotnet-sdk/blob/master/src/Dapr.Client/DaprClient.cs#L133) can Doing custom Haeaders, but is this too much trouble, which means InvokeMethodGrpcAsync is completely useless for me?

![sidecar](https://user-images.githubusercontent.com/9740886/232680533-8118d92d-1128-48b4-bbe9-a7e5fc57b282.png)

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.