Questions tagged [protobuf-net.grpc]
26 questions
4
votes
2 answers
Exception when adding new method in a working Service using gRPC-Web and protobuf-net
I am getting the following exception:
Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: The type initializer for 'DefaultProxyCache1' threw an exception.…

paburgos
- 259
- 2
- 14
3
votes
2 answers
Serializing base class properties
So, if I have:
[ProtoContract]
public abstract class BaseRequest
{
[ProtoMember(1)] public Guid Guid { get; set; }
}
[ProtoContract]
public class Request : BaseRequest
{
[ProtoMember(1)] public long Id { get; set; }
}
and…

f00f
- 123
- 1
- 11
2
votes
0 answers
protobuf-net.grpc Type cannot be serialized if used as service parameter
I'm using protobuf-net.grpc and in general the setup is working, but now I ran into an issue: one of the message objects cannot be used as service method parameter.
Consider the following service definition:
[ServiceContract]
public interface…

marce
- 781
- 1
- 10
- 20
2
votes
1 answer
specified method is not supported error on calling grpc service using protobuf-net library
My team uses Google grpc communication for micro service communication. I came across protobuf-net that is fast, reduces code complexity and no .proto file to be defined. I wanted to give a try using protobuf-net to see if we gain considerable…

Anakar
- 112
- 11
2
votes
2 answers
How to use (pack) Google.Protobuf.WellknownTypes.Any in protobuf-net code first gRPC
I am creating an gRPC service and we decided to choose the code first approach with protobuf-net.
Now I am running into a scenario where we have a couple of classes that need to be wrapped.
We do not want to define KnownTypes in the MyMessage class…

monty
- 7,888
- 16
- 63
- 100
2
votes
1 answer
Is it possible to set the default Serializer to a pre-compiled one in protobuf-net?
I am using protobuf-net with protobuf-net.grpc and am attempting to get it to work on Xmarin/Ios.
Currently I have attempted to create a pre-compiled serializer:
RuntimeTypeModel runtimeTypeModel = RuntimeTypeModel.Create();
…

RichardVNL
- 197
- 1
- 7
1
vote
1 answer
protobuf-net causing Invalid wire type error during deserialization
Working on a POC of transitioning from BinaryFormater to Protobuf for Serialization and deserialization inorder to reduce the deserialization time. While trying to deserialize using the protobuf library I get the following error "Invalid wire-type;…

Jonah Angelus
- 11
- 2
1
vote
2 answers
Publish/Subcribe Notification Service Over gRPC Using protobuf-net.grpc
I'm trying to write a notification system between a server and multiple clients using gRPC server streaming in protobuf-net.grpc (.NET Framework 4.8).
I based my service off of this example. However, if I understand the example correctly, it is only…

user2727133
- 149
- 1
- 12
1
vote
0 answers
how to configure Protobuf-net Grpc to send and recieve large data
I was running a performance benchmark while sending/receiving data using protobuf-net grpc (codefirst). I created a million records on the server and attempted to return to the client side, but received the following…

Asım Gündüz
- 1,257
- 3
- 17
- 42
1
vote
1 answer
Mixing Code-First gRPC with Contract-First gRPC
Code-First = protobuf-net.Grpc.AspNetCore
Contract-First = Grpc.AspNetCore
I followed the example projects and they communicate without error to their respective server client. However, if I mix and match (code-first to contract-first or vice…

Michael Gulik
- 141
- 11
1
vote
0 answers
protobuf-net : Getting exception while creating client for Service which has Generic methods
I am working with protobuf-net v3.0.101 and getting one exception while creating client for a Service which has generic methods. Let say the service is like this :
[ServiceContract(Name = "UnitTests.Rpc.Calculator")]
public interface ICalculator
{
…

Priyanshu
- 31
- 4
1
vote
0 answers
protobuf-net.Grpc Flow/Congestion Control
I'm working on a program which will asynchronously load large amounts of data from a server via gRPC (both ends use protobuf-net.Grpc).
While I can simply throw large amounts of data at the client via IAsyncEnumerable, I sometimes want to prioritize…

blenderfreaky
- 738
- 7
- 26
1
vote
1 answer
Protobuf-net - How to use oneof
I did a quick search about the usage of oneof in Protobuf-net and it appears it's supported as of v2.3.0, but I can't for the life of me find any examples on exactly how one would use it!
My requirements are pretty simple, and maybe this can also be…

cogumel0
- 2,430
- 5
- 29
- 45
1
vote
2 answers
Generate .proto file of generic services with protobuf-net.Grpc
I am trying to generate the .proto of this structure:
-- MODELS --
base model
[DataContract]
public abstract class Base
{
[ProtoMember(1)]
public string Id { get; set; }
[ProtoMember(2, DataFormat = DataFormat.WellKnown)]
public…

Sinan
- 898
- 1
- 9
- 23
1
vote
3 answers
Save document with the member number instead the name with protobuf-net and MongoDB
I saw somewhere that with the Go MongoDB driver it is possible to save a document with the order number instead of the field name.
They end up with this in the database:
{
"3": "foo",
"10": 1,
"33": 123456
"107": {
"2": "bar",
…

Sinan
- 898
- 1
- 9
- 23