This class extends the ServiceHost class implemented by Windows Communication Foundation (WCF) service model programming model. It is a service host for registering Security Token Services (STSes) and let you expose an STS for use by client applications when you are not using Internet Information Services (IIS). The ServiceHost will have multiple endpoints registered based on the number of listeners registered in the configuration.

The following tables list the members exposed by the WSTrustServiceHost type.

Public Constructors

  Name Description
WSTrustServiceHost Overloaded. Initializes an instance of WSTrustServiceHost.
Top

Public Properties (see also Protected Properties)

  Name Description
public property Authorization  (Inherited from ServiceHostBase)
public property BaseAddresses  (Inherited from ServiceHostBase)
public property ChannelDispatchers  (Inherited from ServiceHostBase)
public property CloseTimeout  (Inherited from ServiceHostBase)
public property Credentials  (Inherited from ServiceHostBase)
public property Description  (Inherited from ServiceHostBase)
public property Extensions  (Inherited from ServiceHostBase)
public property ManualFlowControlLimit  (Inherited from ServiceHostBase)
public property OpenTimeout  (Inherited from ServiceHostBase)
public property SecurityTokenServiceConfiguration  
public property ServiceContract  
public property SingletonInstance  (Inherited from ServiceHost)
public property State  (Inherited from CommunicationObject)
Top

Protected Properties

  Name Description
protected property DefaultCloseTimeout  (Inherited from ServiceHostBase)
protected property DefaultOpenTimeout  (Inherited from ServiceHostBase)
protected property ImplementedContracts  (Inherited from ServiceHostBase)
protected property IsDisposed  (Inherited from CommunicationObject)
protected property ThisLock  (Inherited from CommunicationObject)
Top

Public Methods (see also Protected Methods)

  Name Description
public method Abort  (Inherited from CommunicationObject)
public method AddServiceEndpoint  Overloaded. (Inherited from ServiceHost)
public method BeginClose  Overloaded. (Inherited from CommunicationObject)
public method BeginOpen  Overloaded. (Inherited from CommunicationObject)
public method Close  Overloaded. (Inherited from CommunicationObject)
public method EndClose  (Inherited from CommunicationObject)
public method EndOpen  (Inherited from CommunicationObject)
public method Equals  Overloaded. (Inherited from Object)
public method GetHashCode  (Inherited from Object)
public method GetType  (Inherited from Object)
public method IncrementManualFlowControlLimit  (Inherited from ServiceHostBase)
public method Open  Overloaded. (Inherited from CommunicationObject)
public methodstatic ReferenceEquals  (Inherited from Object)
public method ToString  (Inherited from Object)
Top

Protected Methods

  Name Description
protected method AddBaseAddress  (Inherited from ServiceHostBase)
protected method ApplyConfiguration Overridden. Override of base class method. Loads WIF configuration and overrides WCF configuration settings with WIF settings.
protected method ConfigureMetadata Configures metadata (WSDL) for the service host. The method loops through the base addresses, and adds mex endpoints for http, https, net.tcp and net.pipe addresses, only when no mex endpoints have been previously added by the user. For http and https addresses, HTTP and HTTPS "Get" mechanism for WSDL retrieval is enabled.
protected method CreateDescription  (Inherited from ServiceHost)
protected method Fault  (Inherited from CommunicationObject)
protected method Finalize  (Inherited from Object)
protected method GetCommunicationObjectType  (Inherited from CommunicationObject)
protected method InitializeDescription  Overloaded. (Inherited from ServiceHost)
protected method InitializeRuntime Overridden. Override of the base class method. Configures following settings on the service host. (1) Service Debug Behavior to include ExceptionDetailsInFault; (2) Configure the ExtensibleSecurityTokenManager on the service host.
protected method InitializeSecurityTokenManager Initializes the SecurityTokenManager that will be exposed through the wrapped ServiceHost. By default the method exposes the SecurityTokenHandlers initialized with SecurityTokenServiceConfiguration through the ServiceHost SecurityTokenManager. Note here we will only re-configure the service host when its credentials is not FederatedServiceCredentials, which allows user to manually configure the credentials themselves.
protected method LoadConfigurationSection  (Inherited from ServiceHostBase)
protected method MemberwiseClone  (Inherited from Object)
protected method OnAbort  (Inherited from ServiceHostBase)
protected method OnBeginClose  (Inherited from ServiceHostBase)
protected method OnBeginOpen  (Inherited from ServiceHostBase)
protected method OnClose  (Inherited from ServiceHostBase)
protected method OnClosed  (Inherited from ServiceHost)
protected method OnClosing  (Inherited from CommunicationObject)
protected method OnEndClose  (Inherited from ServiceHostBase)
protected method OnEndOpen  (Inherited from ServiceHostBase)
protected method OnFaulted  (Inherited from CommunicationObject)
protected method OnOpen  (Inherited from ServiceHostBase)
protected method OnOpened  (Inherited from ServiceHostBase)
protected method OnOpening  (Inherited from CommunicationObject)
protected method ReleasePerformanceCounters  (Inherited from ServiceHostBase)
protected method ThrowIfDisposed  (Inherited from CommunicationObject)
protected method ThrowIfDisposedOrImmutable  (Inherited from CommunicationObject)
protected method ThrowIfDisposedOrNotOpen  (Inherited from CommunicationObject)
Top

Public Events

  Name Description
public event Closed  (Inherited from CommunicationObject)
public event Closing  (Inherited from CommunicationObject)
public event Faulted  (Inherited from CommunicationObject)
public event Opened  (Inherited from CommunicationObject)
public event Opening  (Inherited from CommunicationObject)
public event UnknownMessageReceived  (Inherited from ServiceHostBase)
Top

Explicit Interface Implementations

  Name Description
System.IDisposable.Dispose  (Inherited from ServiceHostBase)
Top

See Also




Copyright © 2008 by Microsoft Corporation. All rights reserved.