Classe WSTrustServiceHostFactory
Creates a ServiceHost instance.
Espace de noms: Microsoft.IdentityModel.Protocols.WSTrust
Assembly : Microsoft.IdentityModel (dans microsoft.identitymodel.dll)
Utilisation
Dim instance As WSTrustServiceHostFactory
Syntaxe
'Déclaration
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
Remarques
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.
Hiérarchie d'héritage
System.Object
System.ServiceModel.Activation.ServiceHostFactoryBase
System.ServiceModel.Activation.ServiceHostFactory
Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceHostFactory
Cohérence de thread
Tous les membres statiques publics (partagés dans Visual Basic) de ce type sont thread-safe.Il n'est pas garanti que les membres d'instance soient thread-safe.
Plateformes
Plateformes de développement
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2008, Windows Vista, Not tested on Windows XP
Change History
Voir aussi
Référence
Membres WSTrustServiceHostFactory
Espace de noms Microsoft.IdentityModel.Protocols.WSTrust