'Consuming WCF service from aspnet core application using protoobuf

My existing netfx library allows consuming a vendor side WCF service. The payload size and frequency at which the call is made is pretty high. So we use protobuf (2.0.0.668). Essentially what we do is apply ProtoBuf.ServiceModel.ProtoEndpointBehavior to the client (in code).

We are in the process of migrating the library to aspnet core (multi-target to net461 and netcoreapp3.1, and net6.0 in future). Can I still continue to use protobuf. If yes, then how?

BTW, we do allow consuming WCF endpoints from NETCore apps.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source