Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

NamedPipe binary messages

$
0
0

Hello,

Simple question (details follow) : how to use named pipes, without soap serialization, i just want to have on method and read the byte array myself.

Few weeks ago, i wrote a service using wcf and web sockets. This service, to deal with non .net software, use a custom binding with a really simple contract :

        [OperationContract(IsOneWay = true, Action = "*")]
        Task Message(System.ServiceModel.Channels.Message message);


and the callback :

        [OperationContract(IsOneWay = true, Action = "*")]
        Task OnMessage(System.ServiceModel.Channels.Message result);

In this case, i just read the byte array and deserialize using protobuf.

I've got another service on the same machine, and i want to improve performence using the protobuf deserializer. This service is already exposed with named pipes (with our former contracts).

With the new websocket server, and the protobuf serializer, i would like to implement it on the second service. Looking at protobuf endpoint behavior, it seems that they override the XmlObjectSerializer, but it seems that it still use some xml.

Do anyone have an idea on how to do this ?

Thanks


Viewing all articles
Browse latest Browse all 8156


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>