Ejemplo n.º 1
0
 /// <summary>
 /// Create a named pipes client.
 /// </summary>
 /// <param name="npAddress"></param>
 /// <param name="serializer">Inject your own serializer for complex objects and avoid using the Newtonsoft JSON DefaultSerializer.</param>
 public NpClient(NpEndPoint npAddress, ISerializer serializer = null)
 {
     if (null == serializer)
     {
         serializer = new DefaultSerializer();
     }
     _proxy = NpProxy.CreateProxy <TInterface>(npAddress, serializer);
 }
Ejemplo n.º 2
0
 public NpClient(NpEndPoint npAddress)
 {
     _proxy = NpProxy.CreateProxy <TInterface>(npAddress);
 }