gRPC for .NET! gRPC is a modern, open source, high-performance remote procedure call (RPC) framework that can run anywhere. gRPC enables client and server applications to communicate transparently, and simplifies the building of connected systems. https://learn.microsoft.com/en-us/aspnet/core/grpc/?view=aspnetcore-3.0
Questions tagged [grpc-dotnet]
87 questions
0
votes
0 answers
gRPC - bidirectional stream goes to TRANSIENT_FAILURE if idle for too long
I'm trying to get a fairly simple test scenario to work - I'd like to create a long-lived bidirectional streaming rpc that may sit idle for long periods of time (electron app with local server).
A Node gRPC client starts a C# gRPC server locally and…

Doug Denniston
- 894
- 1
- 8
- 12
0
votes
1 answer
Built Azure Function for Linux doesn't include dependency
We have an Azure Function running on a Linux host.
Our app is a netcoreapp3.1. It runs fine, except for one issue which I can't explain.
The csproj file has always been configured like this (only a snippet):
…

David O'Brien
- 813
- 1
- 9
- 18
0
votes
1 answer
How to specify a certificate in the cert store for gRPC .NET Core?
I'm trying to specify a certificate in the cert store for gRPC .NET Core 3.1.
I found a way to specify a certificate by setting the path.
https://medium.com/@mcilis/how-to-publish-net-core-grpc-server-as-a-windows-service-dd562a1e263d
…

Wakusei
- 146
- 3
- 12
0
votes
1 answer
Why does a gRPC deadline received on a server differs from the one sent by a client
I am using gRPC csharp implementation for two services to talk to one another.
When making a call from a client, I am setting a Deadline.
When receiving a call on a server, I am reading what the Deadline is.
To my surprise, the deadline value is not…

Alvis
- 3,543
- 5
- 36
- 41
0
votes
0 answers
Convert type 'Microsoft.Extensions.DependencyInjection.IHttpClientBuilder' to 'Microsoft.Extensions.DependencyInjection.IServiceCollection'
I have the following code in asp.net core 3.1 project :
IArticleService.cs
namespace API.Interfaces
{
public interface IArticleService
{
Task GetArticleAsync(int articleId, int countryId, string userCookieId);
…

santosh kumar patro
- 7,231
- 22
- 71
- 143
0
votes
1 answer
Strange "Permission denied" when trying to build C# Protobuf project inside Docker container
I have a fairly simple .net Core C# project with a .proto file. The .csproj looks like this:
netstandard2.1
…

rabejens
- 7,594
- 11
- 56
- 104
0
votes
0 answers
How to use named gRPC clients with factory
Looking at the DI supported for gRPC clients, I was having troubles figuring out how the implementation for named gRPC clients should be made.
The Grpc.Net.ClientFactory package offers such a functionality to register a named gRPC client. All…

vsir
- 349
- 2
- 12
0
votes
0 answers
DNS resolution failure error while connecting to grpc server running on docker
I am trying to access the grpc server which exposes 9000 port and is running as docker container.
I am using .net core client to connect to the server.It works perfectly fine when GRPC server is not running as a docker container.
I have tried using…

harika
- 65
- 6
0
votes
1 answer
How to create a dotnet gRPC server without using concrete instances
So I am trying to build a .Net Core app that has both REST and gRPC.
Expected results: To have one app running that supports a working REST on one port and gRPC on another.
REST is easy. It's where the app starts. But to configure gRPC's port I saw…

Kristiyan Goleminov
- 33
- 4
0
votes
1 answer
How does one configure KeepAlive on Grpc.AspNetCore.Client?
I'm trying to configure the KeepAlive settings for a gRPC connection using Grpc.Net.Client. The original SDK supports this through injecting ChannelOption objects into the Channel constructor. What I can't see is any way to set this up through the…

Julian Birch
- 2,605
- 1
- 21
- 36
-1
votes
1 answer
How to add (+) proto message properties in C#
How can I add the properties of a proto message to get for example a total amount of summed up properties.
message Affordability {
decimal salary = 1;
decimal accomodation = 2;
decimal phone_bill = 3;
decimal utilities = 4;
}
Would like…

Chief_Muna
- 27
- 3
-1
votes
2 answers
How do I retrieve streaming results using Grpc in .Net Core?
I am building a .NetCore application using gRPC.
I'm having issues constructing code to handle streaming results.
Consider the following protobuf definition:
service SampleService
{
rpc RegisterClient(G_ClientRequest) returns (stream…

JohnB
- 3,921
- 8
- 49
- 99