ApplicationServicesHostFactory Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a factory class that creates instances of the authentication service, role service, and profile service in managed hosting environments.
public ref class ApplicationServicesHostFactory : System::ServiceModel::Activation::ServiceHostFactory
public class ApplicationServicesHostFactory : System.ServiceModel.Activation.ServiceHostFactory
type ApplicationServicesHostFactory = class
inherit ServiceHostFactory
Public Class ApplicationServicesHostFactory
Inherits ServiceHostFactory
- Inheritance
Examples
The following example shows how to specify ApplicationServicesHostFactory in the @ ServiceHost
directive of a .svc file to configure the authentication service.
<%@ ServiceHost
Language="C#"
Service="System.Web.ApplicationServices.AuthenticationService"
Factory="System.Web.ApplicationServices.ApplicationServicesHostFactory"
%>
<%@ ServiceHost
Language="VB"
Service="System.Web.ApplicationServices.AuthenticationService"
Factory="System.Web.ApplicationServices.ApplicationServicesHostFactory"
%>
Remarks
This factory class provides a way to create instances of the AuthenticationService, ProfileService, and RoleService classes.
To use this factory class, create a WCF Service (.svc) file and specify ApplicationServicesHostFactory in the ServiceHosting
attribute of the @ ServiceHost
directive.
Constructors
ApplicationServicesHostFactory() |
Initializes a new instance of the ApplicationServicesHostFactory class. |
Methods
CreateServiceHost(String, Uri[]) |
Creates a ServiceHost with specific base addresses and initializes it with specified data. (Inherited from ServiceHostFactory) |
CreateServiceHost(Type, Uri[]) |
Creates an instance of the service class that has the specified base address or addresses. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |