【发布时间】:2011-07-16 14:59:04
【问题描述】:
我正在尝试在同一台机器上运行多个 WCF 服务托管应用程序。
我想运行多个应用程序 - 而不是在一个应用程序中运行多个服务。
var host = new ServiceHost(typeof(MyClass1), new Uri[] { new Uri("net.pipe://localhost") });
host.AddServiceEndpoint(typeof(ISomeInterface), new NetNamedPipeBinding(), "FOO");
host.Open();
我为每个应用程序更改了“FOO”,但仍然无法启动多个服务。 猜猜它很简单,但我卡住了:(
问候
【问题讨论】:
标签: c# wcf named-pipes netnamedpipebinding