简体   繁体   English

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

[英]Custom Formatter for .NET Remoting

I would like to use a custom formatter for .NET remoting. 我想对.NET远程处理使用自定义格式器。 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. 为了做到这一点,我的理解是我必须实现类似于BinaryClientFormatterSink类(用于BinaryFormatter)的东西,但是要实现我的自定义格式化程序。 For example, if my formatter was FastBinaryFormatter, I would likely implement FastBinaryClientFormatterSink. 例如,如果我的格式化程序是FastBinaryFormatter,则可能会实现FastBinaryClientFormatterSink。 I would then configure remoting to use my FastBinaryClientFormatterSink in the configuration file by providing the tag: . 然后,我将通过提供以下标记来配置远程处理以在配置文件中使用我的FastBinaryClientFormatterSink: 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. 最终,我想在TCP通道上使用它。 Where could I find a sample implementation of this? 在哪里可以找到该示例的实现?

Here you can find a sample for custom formatters for .net remoting. 在这里,您可以找到用于.net远程处理的自定义格式化程序的示例。 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. 在此示例中,您可以看到如何在客户端和服务器端都处理消息,以及必须处理哪些参数才能使其正常工作。

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

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