For C# and gRPC, which is the difference between protobuf-net and protobuf-net.Grpc?

70 Views Asked by At

Until now, I was using protobuf-netGrpc to use gPRC to transmit data between service and client. It works, I can create an interface as contract between the service and the client and I can use classes that I can decorate the DTOs with attributes like DataContract and DataMemeber, that belongs to System.Runtime.Serialization, to serialize the classes.

But now I have a problem, I would like to serialize a DateOnly property, but protobuf-grpc is not compatible with this type.

Searching information, protobuf-net is compatible with this type, github project of protobuf-net.

In my project I don't have the protobuf-net package, I have only protobuf-net.Grpc and protobuf-net.Grpc.AspNetCore, so I am not using protobuf-net.

What is the difference between protobuf-net and protobuf-net.grpc? Could I use protobuf-net with protobuf-net.Grpc, to can use the code first solution and to have the benefits of protobuf-net? Because I have seen that that last update of protobuf-net.Grpc is in 2023-02-02 and it seems that protobuf-net is update more often, the last update is 2023-09-27.

Thanks so much.

0

There are 0 best solutions below