我已经做了一个基本的wcf控制台应用程序服务,通过pipes.net进行通信。逻辑可与我的主要应用程序,但我需要保持独立的商业原因如何在服务器上使用wcf控制台应用程序?
它做的这些
Uri baseAddress = new Uri(@"net.pipe://localhost/Server");
Uri baseHttpAddress = new Uri(@"http://localhost:9080");
using (var host = new ServiceHost(typeof(CPLConversionService), baseAddress, baseHttpAddress))
{
host.Open();
Console.WriteLine("The CPLConversionService is available. ");
Console.WriteLine("Press <Enter> to stop the service. ");
Console.ReadLine();
host.Close();
}
反正之一,它是好的,把这个一台Web服务器上,让它长期运行?我应该用某种形式使用IIS来管理它吗?
是,登录了RDP,复制和运行的方式。为什么不?或者让它成为Windows服务,这将是正确的方法。 – abatishchev
查看问题和答案 - [关于wcf服务托管](http://stackoverflow.com/a/13094635/596688) – Sergey