我可以在Windows服务中托管(自托管)WCF服务并通过http公开它吗?

时间:2022-11-19 10:08:08

I am new to WCF.. is this possible and if its consumed via external web applications is it better go with IIS and http, ie service hosted by an ASP.NET MVC application?

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

1 个解决方案

#1


8  

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

是的,您可以在Windows服务中托管WCF服务。

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

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

我会说,如果你可以在iis中托管它,那可能会更好。

#1


8  

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

是的,您可以在Windows服务中托管WCF服务。

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

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

我会说,如果你可以在iis中托管它,那可能会更好。