다음을 통해 공유


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 WIF(Windows® Identity Foundation) 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에서는 Shared) 멤버는 모두 스레드로부터 안전합니다.인스턴스 멤버는 스레드로부터 안전하지 않을 수 있습니다.

플랫폼

개발 플랫폼

Windows Server 2003, Windows Vista

Target Platforms

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

Change History

참고 항목

참조

WSTrustServiceHostFactory 멤버
Microsoft.IdentityModel.Protocols.WSTrust 네임스페이스