Creates a ServiceHost instance.
Пространство имен: Microsoft.IdentityModel.Protocols.WSTrust
Сборка: Microsoft.IdentityModel (в microsoft.identitymodel.dll)

Использование

Visual Basic
Dim instance As WSTrustServiceHostFactory

Синтаксис

Visual Basic
Public Class WSTrustServiceHostFactory
		Inherits ServiceHostFactory
C#
public class WSTrustServiceHostFactory : ServiceHostFactory
C++
public ref class WSTrustServiceHostFactory : public ServiceHostFactory
J#
public class WSTrustServiceHostFactory extends ServiceHostFactory
JScript
public class WSTrustServiceHostFactory extends ServiceHostFactory

Примечания

The WSTrustServiceHostFactory class is the Windows® Identity Foundation (WIF) implementation of the Windows Communication Foundation (WCF) ServiceHostFactory class. This class can be used to deploy WIF security token services (STS) that are hosted in IIS. By default, the WSTrustServiceHostFactory class will use a WSTrustServiceHost service host with a WSTrustServiceContract service contract implementation.

The following code snippet demonstrates how to use this class in an .svc file:

  Копировать код
<% @ServiceHost Language=C# Debug="true" Factory="Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceHostFactory" Service="MySecurityTokenServiceConfiguration" %>

In the above configuration snippet, the Service attribute is pointing to an implementation of the SecurityTokenServiceConfiguration object which will be used by the framework to determine how the WSTrustServiceHost will be constructed. Configuration settings from a web.config file will be applied towards the construction of ServiceHost instance.The WSTrustServiceHostFactory class may be overridden to customize this behavior.


Иерархия наследования

System.Object
   System.ServiceModel.Activation.ServiceHostFactoryBase
     System.ServiceModel.Activation.ServiceHostFactory
      Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceHostFactory

Безопасность потоков

Любые открытые статические члены (Shared в Visual Basic) этого типа являются поточно-ориентированными.Любые члены экземпляров не являются гарантированно поточно-ориентированными.

Платформы

Платформа разработки

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

Change History

См. также