NetNamedPipeBinding support in Unity

368 Views Asked by At

Does the NetNamedPipeBinding (WCF) is supported in the new versions of Unity? If yes, can you please provide an example?

I was able to implement this example using the NetNamedPipeBinding in Visual Studio 15 (both the Client and the Server sides), however, implementing the Client side in Unity causes the following error:

InvalidOperationException: Channel type IDuplexSessionChannel is not supported.

I did manage to implement this example for the BasicHttpBinding (Client side) in Unity.

Any suggestions?

EDIT:

I get the exception in the following line:

RemoteAPIClient client = new RemoteAPIClient(new NetNamedPipeBinding(), new EndpointAddress("net.pipe://localhost/netPipe"));     
try
{
    client.Ping();
}

Unity version: 2017.2.0f3 (64-bit) The System.ServiceModel DLL i placed in Unity i took from here:

C:\Program Files\Unity\Editor\Data\Mono\lib\mono\2.0

Thank you!

0

There are 0 best solutions below