ApplicationServicesHostFactory ApplicationServicesHostFactory ApplicationServicesHostFactory ApplicationServicesHostFactory Class

Definition

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() ApplicationServicesHostFactory() ApplicationServicesHostFactory() ApplicationServicesHostFactory()

Initializes a new instance of the ApplicationServicesHostFactory class.

Methods

CreateServiceHost(String, Uri[]) CreateServiceHost(String, Uri[]) CreateServiceHost(String, Uri[]) CreateServiceHost(String, Uri[])

Creates a ServiceHost with specific base addresses and initializes it with specified data.

(Inherited from ServiceHostFactory)
CreateServiceHost(Type, Uri[]) CreateServiceHost(Type, Uri[]) CreateServiceHost(Type, Uri[]) CreateServiceHost(Type, Uri[])

Creates an instance of the service class that has the specified base address or addresses.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to