/// <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); }
public NpClient(NpEndPoint npAddress) { _proxy = NpProxy.CreateProxy <TInterface>(npAddress); }