我可以对 protobuf-net WCF 使用 net.tcp 绑定吗?

发布于 2024-08-11 12:38:59 字数 89 浏览 4 评论 0原文

我可以对 protobuf-net WCF 使用 net.tcp 绑定吗?

我可以使用 ClientBase 还是必须使用 ProtoClient?

Can I use net.tcp bindings for protobuf-net WCF?

Can I use ClientBase or I have to use ProtoClient?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

荒芜了季节 2024-08-18 12:38:59

如果您已经在 WCF 中使用 TCP 绑定,那么我想您可以使用 protobuf-net;很简单,我还没有尝试过这种组合,但由于传输和序列化器是分开的,我想不出不这样做的原因。

我必须尝试一下,也许使用新的端点东西......我有一个测试装置,所以我将尝试重新配置传输 - 看看它是否有效。这很大程度上是应用信息此处。

If you are already using TCP bindings for your WCF, then I would imagine that you can use protobuf-net; quite simply, I haven't tried this combination, but since the transport and serializer are separate I can't think of a reason why not.

I will have to try it, perhaps using the new endpoint stuff... I have a test rig, so I'll try reconfiguring the transport - see if it works. It is largely a case of applying the info here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文