建设项目环境影响登记表网站,泰州做房产的网站,深圳微信网站建设公司,官网做得好的公司WCF所支持的宿主服务: 1.Self-hosting:控制台应用程序,Windows应用程序,Windows服务,HTTP,TCP,named pipes,MSMQ 2.IIS/ASP.NET 3.Windows Activation Service ServiceHost实例必须进行初始化为服务暴露出端点(endpoint) 每个ServiceHost与指定的服务类型相关联 核心方法: Open…WCF所支持的宿主服务: 1.Self-hosting:控制台应用程序,Windows应用程序,Windows服务,HTTP,TCP,named pipes,MSMQ 2.IIS/ASP.NET 3.Windows Activation Service ServiceHost实例必须进行初始化为服务暴露出端点(endpoint) 每个ServiceHost与指定的服务类型相关联 核心方法: Open()-------打开信道监听器 Close()-------关闭信道监听器 ServiceHost hostnew ServiceHost(typeof(HelloIndigo.HelloIndigoService)); host.AddServiceEndpoint(typeof(HelloIndigo.IHelloIndigoService),new NetTcpBinding(),net.tcp://localhost:9000/HelloIndigo); host.Open(); IIS/WAS 宿主 1.请求根据.SVC文件在IIS中的扩展映射到WCF中 % ServiceHost ServiceHelloIndigo.HelloIndigoService% 服务类型与ServiceHost的声明相关 转载于:https://www.cnblogs.com/duwamish/archive/2008/08/15/1268672.html