IdeaBlade DevForce 2010 Help Reference
EntityServerHostFactory Class
Members  See Also  Send Feedback
IdeaBlade.EntityModel.Web Assembly > IdeaBlade.EntityModel.Server Namespace : EntityServerHostFactory Class



Custom ServiceHostFactory for EntityServers in a hosted environment.

Syntax

Visual Basic (Declaration) 
Public Class EntityServerHostFactory 
   Inherits System.ServiceModel.Activation.ServiceHostFactory
Visual Basic (Usage)Copy Code
Dim instance As EntityServerHostFactory
C# 
public class EntityServerHostFactory : System.ServiceModel.Activation.ServiceHostFactory 
C++/CLI 
public ref class EntityServerHostFactory : public System.ServiceModel.Activation.ServiceHostFactory 

Remarks

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).

Inheritance Hierarchy

System.Object
   System.ServiceModel.Activation.ServiceHostFactoryBase
      System.ServiceModel.Activation.ServiceHostFactory
         IdeaBlade.EntityModel.Server.EntityServerHostFactory

Requirements

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

See Also

© 2013 All Rights Reserved.