-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
ApplicationServicesHostFactory.xml
113 lines (102 loc) · 6.48 KB
/
ApplicationServicesHostFactory.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<Type Name="ApplicationServicesHostFactory" FullName="System.Web.ApplicationServices.ApplicationServicesHostFactory">
<TypeSignature Language="C#" Value="public class ApplicationServicesHostFactory : System.ServiceModel.Activation.ServiceHostFactory" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit ApplicationServicesHostFactory extends System.ServiceModel.Activation.ServiceHostFactory" />
<TypeSignature Language="DocId" Value="T:System.Web.ApplicationServices.ApplicationServicesHostFactory" />
<TypeSignature Language="VB.NET" Value="Public Class ApplicationServicesHostFactory
Inherits ServiceHostFactory" />
<TypeSignature Language="F#" Value="type ApplicationServicesHostFactory = class
 inherit ServiceHostFactory" />
<TypeSignature Language="C++ CLI" Value="public ref class ApplicationServicesHostFactory : System::ServiceModel::Activation::ServiceHostFactory" />
<AssemblyInfo>
<AssemblyName>System.Web.Extensions</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.ServiceModel.Activation.ServiceHostFactory</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Provides a factory class that creates instances of the authentication service, role service, and profile service in managed hosting environments.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
This factory class provides a way to create instances of the <xref:System.Web.ApplicationServices.AuthenticationService>, <xref:System.Web.ApplicationServices.ProfileService>, and <xref:System.Web.ApplicationServices.RoleService> classes.
To use this factory class, create a WCF Service (.svc) file and specify <xref:System.Web.ApplicationServices.ApplicationServicesHostFactory> in the `ServiceHosting` attribute of the `@ ServiceHost` directive.
## Examples
The following example shows how to specify <xref:System.Web.ApplicationServices.ApplicationServicesHostFactory> in the `@ ServiceHost` directive of a .svc file to configure the authentication service.
```csharp
<%@ ServiceHost
Language="C#"
Service="System.Web.ApplicationServices.AuthenticationService"
Factory="System.Web.ApplicationServices.ApplicationServicesHostFactory"
%>
```
```vb
<%@ ServiceHost
Language="VB"
Service="System.Web.ApplicationServices.AuthenticationService"
Factory="System.Web.ApplicationServices.ApplicationServicesHostFactory"
%>
```
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ApplicationServicesHostFactory ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.ApplicationServices.ApplicationServicesHostFactory.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 ApplicationServicesHostFactory();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Extensions</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Web.ApplicationServices.ApplicationServicesHostFactory" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="CreateServiceHost">
<MemberSignature Language="C#" Value="protected override System.ServiceModel.ServiceHost CreateServiceHost (Type serviceType, Uri[] baseAddresses);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance class System.ServiceModel.ServiceHost CreateServiceHost(class System.Type serviceType, class System.Uri[] baseAddresses) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.ApplicationServices.ApplicationServicesHostFactory.CreateServiceHost(System.Type,System.Uri[])" />
<MemberSignature Language="VB.NET" Value="Protected Overrides Function CreateServiceHost (serviceType As Type, baseAddresses As Uri()) As ServiceHost" />
<MemberSignature Language="F#" Value="override this.CreateServiceHost : Type * Uri[] -> System.ServiceModel.ServiceHost" Usage="applicationServicesHostFactory.CreateServiceHost (serviceType, baseAddresses)" />
<MemberSignature Language="C++ CLI" Value="protected:
 override System::ServiceModel::ServiceHost ^ CreateServiceHost(Type ^ serviceType, cli::array <Uri ^> ^ baseAddresses);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Extensions</AssemblyName>
<AssemblyVersion>3.5.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.ServiceModel.ServiceHost</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="serviceType" Type="System.Type" />
<Parameter Name="baseAddresses" Type="System.Uri[]" />
</Parameters>
<Docs>
<param name="serviceType">The type of service host to create.</param>
<param name="baseAddresses">An array of base addresses for the service.</param>
<summary>Creates an instance of the service class that has the specified base address or addresses.</summary>
<returns>A <see cref="T:System.ServiceModel.ServiceHost" /> instance for the type of service that has the specified base address or addresses.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Usually this method is called automatically by Windows Communication Foundation as part of service activation, and you do not have to call the method manually.
]]></format>
</remarks>
</Docs>
</Member>
</Members>
</Type>