I have several wcf services which are hosted using ServiceHost class. Now , I want to implement a separate wcf service which can host these services. Anyone please suggest me how can I do it?
我有几个使用ServiceHost类托管的wcf服务。现在,我想实现一个可以托管这些服务的单独的wcf服务。有人请建议我怎么办?
Suppose I have created some wcf services , I can host them by self hosting using ServiceHost , but I want that a program that can host any wcf service , so no service needs to be self hosting
假设我已经创建了一些wcf服务,我可以使用ServiceHost通过自托管来托管它们,但是我想要一个可以托管任何wcf服务的程序,所以没有服务需要自己托管
2 个解决方案
#1
Well, you could create a service that will host those WCF services, or host them inside IIS, I think either option would work for you.
好吧,你可以创建一个托管这些WCF服务的服务,或者在IIS中托管它们,我认为这两个选项都适合你。
#2
IIS can host your services for you - also the WAS (Windows Process Activation Server) can do the same. They both have their own pro's and cons associated with hosting.
IIS可以为您托管服务 - WAS(Windows进程激活服务器)也可以执行相同的操作。他们都有与托管相关的自己的专业和缺点。
Windows "Dublin" - due out some time after .NET 4.0 - will be another step into a managed, central hosting environment for WCF services (and WF workflows).
Windows“都柏林” - 在.NET 4.0之后的一段时间 - 将成为WCF服务(和WF工作流)的托管*托管环境的又一步。
Those all allow you to have someone else host your WCF services for you - no need for ServiceHost instances on your end of things.
这些都允许您让其他人为您托管您的WCF服务 - 您不需要ServiceHost实例。
Marc
#1
Well, you could create a service that will host those WCF services, or host them inside IIS, I think either option would work for you.
好吧,你可以创建一个托管这些WCF服务的服务,或者在IIS中托管它们,我认为这两个选项都适合你。
#2
IIS can host your services for you - also the WAS (Windows Process Activation Server) can do the same. They both have their own pro's and cons associated with hosting.
IIS可以为您托管服务 - WAS(Windows进程激活服务器)也可以执行相同的操作。他们都有与托管相关的自己的专业和缺点。
Windows "Dublin" - due out some time after .NET 4.0 - will be another step into a managed, central hosting environment for WCF services (and WF workflows).
Windows“都柏林” - 在.NET 4.0之后的一段时间 - 将成为WCF服务(和WF工作流)的托管*托管环境的又一步。
Those all allow you to have someone else host your WCF services for you - no need for ServiceHost instances on your end of things.
这些都允许您让其他人为您托管您的WCF服务 - 您不需要ServiceHost实例。
Marc