简体   繁体   中英

Can I host (self host) a WCF Service in a Windows Service and expose it via http?

我是WCF的新手..这是可能的,如果它通过外部Web应用程序消耗,最好是使用IIS和http,即由ASP.NET MVC应用程序托管的服务吗?

Yes, you can host a WCF service in a windows service.

http://msdn.microsoft.com/en-us/library/ms733069.aspx

I'd say that if you can host it in iis it is probably better.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM