30 questions
0
votes
1
answer
181
views
"Could not find bind method for service" message when using code-first grpc for .net
When using the code-first method with protobuf-net.Grpc.AspNetCore, I see the following messages:
[15:13:07 INF] [HTTP] Starting grpc server...
[15:13:07 DBG] Could not find bind method for App....
1
vote
1
answer
207
views
Inter process communication with protobuf-net.grpc (NET48 NET8)
I'm trying to establish interprocess communication between .net framework (4.8) and .net (8) with protobuf-net.grpc.
The communication between client/server in .net 8 works according to the ...
0
votes
1
answer
343
views
How can I securize my code-first gRPC endpoints using Azure Authentication?
I'm building a microservice. I have some working REST endpoints securized by JWT generated by Microsoft Azure. Here is how the token is verified :
builder.Services
.AddAuthentication(...
0
votes
0
answers
90
views
How to use Interface as [DataMember] in protobuf-net.Grpc.AspNetCore
I'm working on a .NET project where I need to use Protobuf and gRPC for serialization and communication. My classes use interfaces and the [DataContract] attribute. I'm having trouble getting ...
-1
votes
1
answer
314
views
System.NotSupportedException: 'Specified method is not supported.' using protobuf-net.Grpc
I'm getting this error message "Specified method is not supported." whe using protobuf-het.Grpc
I have this Client
public class AddressClient
{
private IAddressService _grpcService;
...
2
votes
0
answers
317
views
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 ...
0
votes
1
answer
2k
views
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 ...
0
votes
1
answer
417
views
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 ...
1
vote
1
answer
637
views
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 ...
3
votes
2
answers
1k
views
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, ...
0
votes
1
answer
780
views
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 ...
1
vote
0
answers
754
views
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 ...
2
votes
1
answer
1k
views
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 ...
1
vote
1
answer
1k
views
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 ...
0
votes
1
answer
3k
views
C# code first grpc : custom protobuf converter for DateTime
I'm using something like this in dotnet asp net core 6:
<PackageReference Include="protobuf-net.Grpc.AspNetCore" Version="1.0.152" />
<PackageReference Include="...
0
votes
1
answer
1k
views
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 ...
1
vote
0
answers
578
views
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 = "...
2
votes
1
answer
292
views
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 ...
2
votes
2
answers
3k
views
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 ...
2
votes
1
answer
3k
views
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 ...
2
votes
2
answers
2k
views
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, ...
1
vote
3
answers
274
views
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&...
2
votes
1
answer
3k
views
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 ...
3
votes
2
answers
251
views
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
{
[...
1
vote
1
answer
971
views
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 ...
1
vote
1
answer
874
views
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 ...
0
votes
1
answer
15
views
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 ...
1
vote
1
answer
1k
views
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 ...
4
votes
2
answers
3k
views
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 '...
2
votes
1
answer
569
views
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 ...