.NET 远程处理的自定义格式化程序
我想使用自定义格式化程序进行 .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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此处您可以找到用于 .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.