次の方法で共有


WSTrustServiceHostFactory クラス

Creates a ServiceHost instance.

名前空間: Microsoft.IdentityModel.Protocols.WSTrust
アセンブリ: Microsoft.IdentityModel (microsoft.identitymodel.dll 中)

使用方法

    Dim instance As WSTrustServiceHostFactory

構文

'宣言
Public Class WSTrustServiceHostFactory
    Inherits ServiceHostFactory
public class WSTrustServiceHostFactory : ServiceHostFactory
public ref class WSTrustServiceHostFactory : public ServiceHostFactory
public class WSTrustServiceHostFactory extends ServiceHostFactory
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

スレッド セーフ

この型のパブリックな静的 (Visual Basic では共有) メンバーは、すべてスレッド セーフです。インスタンス メンバーはすべて、スレッド セーフであることが保証されません。

プラットフォーム

開発プラットフォーム

Windows Server 2003, Windows Vista

Target Platforms

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

Change History

関連項目

参照

WSTrustServiceHostFactory メンバー
Microsoft.IdentityModel.Protocols.WSTrust 名前空間