title: NetNamedPipeBinding support in Unity
body: <p>Does the NetNamedPipeBinding (WCF) is supported in the new versions of Unity? If yes, can you please provide an example? </p>
  
  <p>I was able to implement <a href="https://weblogs.asp.net/ralfw/a-truely-simple-example-to-get-started-with-wcf" rel="nofollow noreferrer">this</a> 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:</p>
  
  <blockquote>
    <p>InvalidOperationException: Channel type IDuplexSessionChannel is not
    supported.</p>
  </blockquote>
  
  <p>I did manage to implement <a href="http://gyanendushekhar.com/2016/04/21/how-to-call-wcf-service-in-unity/" rel="nofollow noreferrer">this</a> example for the BasicHttpBinding (Client side) in Unity.</p>
  
  <p>Any suggestions?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I get the exception in the following line:</p>
  
  <pre><code>RemoteAPIClient client = new RemoteAPIClient(new NetNamedPipeBinding(), new EndpointAddress("net.pipe://localhost/netPipe"));     
  try
  {
      client.Ping();
  }
  </code></pre>
  
  <p>Unity version: 2017.2.0f3 (64-bit)
  The System.ServiceModel DLL i placed in Unity i took from here:</p>
  
  <blockquote>
    <p>C:\Program Files\Unity\Editor\Data\Mono\lib\mono\2.0</p>
  </blockquote>
  
  <p>Thank you!</p>