.NET 远程处理的自定义格式化程序

发布于 2024-08-15 04:17:56 字数 308 浏览 1 评论 0原文

我想使用自定义格式化程序进行 .NET 远程处理。为了实现这一目标,我的理解是我必须实现类似于 BinaryClientFormatterSink 类(用于 BinaryFormatter)的东西,但用于我的自定义格式化程序。例如,如果我的格式化程序是 FastBinaryFormatter,我可能会实现 FastBinaryClientFormatterSink。然后,我将通过提供标签来配置远程处理以在配置文件中使用我的 FastBinaryClientFormatterSink: 。我一直在寻找如何做到这一点的示例,但无济于事。最终我想通过 TCP 通道使用它。我在哪里可以找到该示例的实现?

I would like to use a custom formatter for .NET remoting. In order to accomplish this, my understanding is that I have to implement something akin to the BinaryClientFormatterSink class (used for BinaryFormatter), but for my custom formatter. For example, if my formatter was FastBinaryFormatter, I would likely implement FastBinaryClientFormatterSink. I would then configure remoting to use my FastBinaryClientFormatterSink in the configuration file by providing the tag: . I have been searching for an example of how this is done to no avail. Ultimately I would like to use this over a TCP channel. Where could I find a sample implementation of this?

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

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

发布评论

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

评论(1

夏雨凉 2024-08-22 04:17:56

此处您可以找到用于 .net 远程处理的自定义格式化程序的示例。在此示例中,您可以看到如何在客户端和服务器端处理消息,以及必须处理哪些参数才能使其正常工作。

Here you can find a sample for custom formatters for .net remoting. In this example you can see how the messages are processed both on client and server side, and which parameters you have to handle to make it work properly.

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