简体   繁体   English

protobuf-net 可以序列化 MessageContracts 作为 DataContractSerializer 的替代品吗?

[英]Can protobuf-net serialize MessageContracts as a replacement for the DataContractSerializer?

I can't seem to find documentation on this anywhere, though this discussion seems to suggest messaging will always be a WCF affair...我似乎无法在任何地方找到有关此的文档,尽管此讨论似乎表明消息传递将始终是 WCF 事务...

Can a MessageContract be serialized with protobuf-net? MessageContract可以用 protobuf-net 序列化吗? If so, are there special decorations for MessageHeader and MessageBodyMember ?如果是这样, MessageHeaderMessageBodyMember是否有特殊装饰?

Protobuf-net only know about data-contracts, not message-contracts. Protobuf-net 只知道数据契约,而不知道消息契约。 So: no, basically.所以:不,基本上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM