摘要: 创建WCF服务器1.新建控制台程序2.添加接口及成员方法,接口要以 [serviceContract]来修饰,[OperationContract]来修饰方法3.添加服务提供类来实现WCF服务接口4.添加 using(var host=new ServiceHost(typeof(服务提供类) ) ) { host.Open(): Console.WriteLine("The WCF Service is running! if you want to stop the service,press any key."); Console.Read(); }5,添加app.c阅读全文
posted @ 2011-11-20 00:51 God Blue Shadow 阅读(15) | 评论 (0) 编辑 |
