随笔分类 -
WCF
|
|
|
Windows Comunication Fundation
|
-
最简单的一个WCF实现客户端和服务端
摘要:信不信由你,无需配置,两个console就好了service side 1.定义ServiceContract:2.new a ServiceHost 3. add endpointusingSystem.ServiceModel;namespaceService{classProgram{staticvoidMain(string[]args){Uriaddress=newUri("http://localhost:8000/myservice");using(ServiceHosthost=newServiceHost(typeof(MyService),address
阅读全文
|