Questions tagged [protobuf-net.grpc]

26 questions
1
vote
1 answer

Performance slowness while hitting gRPC endpoints first time using protobuf-net c#

I have a gRPC server running using the protobuf-net.gRPC using .NET Core 3.1. It uses ASP.NET Core framework and Kestrel behind the scenes to run the HTTP server. I notice that very first time the gRPC endpoints that are hit on this server spend…
Tsst
  • 101
  • 2
  • 10
1
vote
1 answer

Serializing an IEnumerable in protobuf-net

I have a library of fairly heavy-weight DTOs that is currently being used by some WCF services. We are attempting to bring it into protobuf-net world, with as little modification as possible. One particular set of items is giving me trouble in…
f00f
  • 123
  • 1
  • 11
1
vote
1 answer

trying to Azure AD authentication with gRPC-Web using protobuf-net

I am trying to Azure AD authentication with gRPC-Web in a blazor webassembly app. I am using protobuf-net to help me with the serialization. I am not sure how to pass the token to have the server side recognize it. this is what I have: var headers =…
1
vote
1 answer

Use protobuf-net RuntimeTypeModel with GrpcClient (AddCodeFirstGrpcClient)

i try to use a custom protobuf-net RuntimeTypeModel with the protobuf-net grpc client library. What I understand so far, I need to to use the ClientFactory and set a binder-configuration which references my RuntimeTypeModel-Instance. var…
0
votes
1 answer

How to configure a single gRpc channel when using multiple clients with AddCodeFirstGrpcClient

From what I understand, it's best to reuse gRPC channels. What is the right way to create multiple code-first clients which share address and handler configurations? I have multiple ASP.NET gRPC services hosted at the same server/address. I want…
Vyrotek
  • 5,356
  • 5
  • 45
  • 70
0
votes
0 answers

Consume MassTransit Message in Grpc Service

I have a GRPC Service using protobuf-net.Grpc where I use Server Streaming to send messages back to the client. I'm using Azure App Services, so I thought I would use an Azure Service Bus and Mass Transit to wait for messages/events and send them…
TeKo
  • 465
  • 1
  • 5
  • 17
0
votes
1 answer

Securing GRPC connections with server.key and server.crt using protobuf-net grpc

I'm trying to make secure grpc calls from the client side but I can't seem to get my code to work; here are the steps and implementations I've taken. My specs: I'm running visual studio on mac m1 pro and I'm using Protobuf-net Grpc Step 1 - Install…
Asım Gündüz
  • 1,257
  • 3
  • 17
  • 42
0
votes
1 answer

Server GRPC core Implementation of GRPC.core in .NET framework 4.8

Samples for grpc.core server implementation in .NET framework 4.7 We are planning to migrate from .NET framework to .NET core (.NET6). As part of this migration, we want to first move to grpc.core from WCF. When we searched for sample service…
0
votes
1 answer

C# code first grpc : custom protobuf converter for DateTime

I'm using something like this in dotnet asp net core 6: [DataContract] public…
Christophe Blin
  • 1,687
  • 1
  • 22
  • 40
0
votes
1 answer

protobuf-net.Grpc serializing Interfaces

I am facing some difficulty serializing an interface using CodeFirst in Protobuf-net.grpc. It is a DataMember within a DataContract. It works fine when I use it in a simple console application but when I try to use it in a different project with the…
Sweater G
  • 15
  • 5
0
votes
1 answer

How to detect environment during deserialization

Is there a way how to find out, If the constructor is called during deserialization on client or during deserialization on server? I talk about constructor of class marked with DataContract atribute from Shared project. Thank you Tom
Tom
  • 23
  • 7
1
2