コード例 #1
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);
        }
コード例 #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
ファイル: TestService.cs プロジェクト: bradyholt/pedamorf
 public void Initialize()
 {
     m_host = new ServiceHost(typeof(PedamorfService));
     m_host.Open();
     m_client = PedamorfServiceManager.GetClient("localhost");
 }