public static PedamorfServiceClient GetClient(string host, int port, NetTcpBinding binding)
        {
            EndpointAddress       endpoint = new EndpointAddress(string.Format("net.tcp://{0}:{1}/Pedamorf", host, port));
            PedamorfServiceClient client   = new PedamorfServiceClient(binding, endpoint);

            return(client);
        }
 public static PedamorfServiceClient GetClient(string host, int port, NetTcpBinding binding)
 {
     EndpointAddress endpoint = new EndpointAddress(string.Format("net.tcp://{0}:{1}/Pedamorf", host, port));
     PedamorfServiceClient client = new PedamorfServiceClient(binding, endpoint);
     return client;
 }
示例#3
0
 public void Initialize()
 {
     m_host = new ServiceHost(typeof(PedamorfService));
     m_host.Open();
     m_client = PedamorfServiceManager.GetClient("localhost");
 }