所有可序列化类都对 WCF 方法参数和/或数据协定成员有效吗?

发布于 2024-08-12 10:06:45 字数 140 浏览 1 评论 0原文

我正在将一些 .net 远程处理代码移植到 WCF。

我可以安全地假设所有可序列化并用作 .remoting 方法参数的类都可以使用二进制消息编码与 WCF 一起使用吗?

如果没有,是否有一个“经验法则”可以用来估计我会遇到什么问题?

I am in the process of porting some .net remoting code to WCF.

Can I safely assume that all classes that are Serializable and works as .remoting method parameters will work with WCF using the binary message encode?

If not is there a “rule of thumb” that I can use to estimate what problems I will hit?

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

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

发布评论

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

评论(1

眼眸 2024-08-19 10:06:45

是的 - 一般来说。但请注意对象大小的默认限制(总共 64K 个成员)。另请注意外部类型的 'KnownType' 属性当前大会。

Yes - in general. Be wary however of the default limits for the size of objects (64K members in total). Also be aware of the 'KnownType' attribute for types that are outside of the current assembly.

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