I have seen this repository; it works with a previous version of protobuf, after enabling AllowSynchronousIO, but I don't know how to use it with version 3.
Could you give any hint on using protobuf-net 3 with ASP.NET Core 3.1?
I have seen this repository; it works with a previous version of protobuf, after enabling AllowSynchronousIO, but I don't know how to use it with version 3.
Could you give any hint on using protobuf-net 3 with ASP.NET Core 3.1?
The easiest way is to use protobuf-net.AspNetCore and use AddProtoBufNet, a bit like here. This configures input/output formatters for content negotiation, using the protobuf-net v3 API and "pipelines" (rather than Stream).
You can use the pipeline APIs directly, but it is a bit more complex than just reading/writing to/from a Stream. Happy to add an example if needed, though.