我试图在同一台机器上运行多个WCF服务托管应用程序.
我想在一个应用程序中运行多个应用程序 - 而不是多个服务.
var host = new ServiceHost(typeof(MyClass1), new Uri[] { new Uri("net.pipe://localhost") });
host.AddServiceEndpoint(typeof(ISomeInterface), new NetNamedPipeBinding(), "FOO");
host.Open();
Run Code Online (Sandbox Code Playgroud)
我为每个应用程序更改"FOO",但仍无法启动多个服务.猜猜它很简单,但我卡住了:(
问候