摘要: 当两个WCF应用程序想共享一个端口提供服务时,如果想不冲突,需要开启WCF的端口共享,并启动一个服务Net.Tcp Port Sharing Service。ServiceHosthost=newServiceHost(typeof(WCFPortSharing.AddService));NetTcpBindingbinding=newNetTcpBinding();binding.PortSharingEnabled=true;host.AddServiceEndpoint(typeof(WCFPortSharing.IAddService),binding,"net.tcp:// 阅读全文
posted @ 2013-03-12 08:55 大强跑了 阅读(294) 评论(0) 推荐(0) 编辑