Visual Basic (Declaration) | |
---|---|
Public Class EntityServerHostFactory Inherits System.ServiceModel.Activation.ServiceHostFactory |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As EntityServerHostFactory |
C# | |
---|---|
public class EntityServerHostFactory : System.ServiceModel.Activation.ServiceHostFactory |
C++/CLI | |
---|---|
public ref class EntityServerHostFactory : public System.ServiceModel.Activation.ServiceHostFactory |
When running the Business Object Server in a hosted environment (IIS or WAS) you must specify this class on the ServiceHost directive in the *.svc file for each EntityServer:
Factory="IdeaBlade.EntityModel.Server.EntityServerHostFactory"
.
This custom factory is used so that the appropriate data source extension will be passed to the EntityServer constructor in a hosted environement. This factory is not used in self-hosted environments (when using the console or Windows Service versions of the BOS).
System.Object
System.ServiceModel.Activation.ServiceHostFactoryBase
System.ServiceModel.Activation.ServiceHostFactory
IdeaBlade.EntityModel.Server.EntityServerHostFactory
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family