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);
        }
예제 #2
0
 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");
 }