1
2
3
4
5
6
7
8
9
10 |
//绑定形式 NetTcpBinding bind = new
NetTcpBinding(); //地址 //通道工厂 ChannelFactory<ClassLibrary1.myInterface> factory = new
ChannelFactory<ClassLibrary1.myInterface>(bind,address); ClassLibrary1.myInterface myobject = factory.CreateChannel(); string
time = myobject.getServerTime(); MessageBox.Show(time); |
原文:http://www.cnblogs.com/aaa6818162/p/3550621.html