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.
下表列出了 WSTrustServiceHost 类型公开的成员。
Public 构造函数
| 名称 | 说明 | |
|---|---|---|
| WSTrustServiceHost | 已重载。 Initializes an instance of WSTrustServiceHost. |
页首
Public 属性
(另请参阅 Protected 属性)
| 名称 | 说明 | |
|---|---|---|
![]() |
Authorization | (从 ServiceHostBase 继承) |
![]() |
BaseAddresses | (从 ServiceHostBase 继承) |
![]() |
ChannelDispatchers | (从 ServiceHostBase 继承) |
![]() |
CloseTimeout | (从 ServiceHostBase 继承) |
![]() |
Credentials | (从 ServiceHostBase 继承) |
![]() |
Description | (从 ServiceHostBase 继承) |
![]() |
Extensions | (从 ServiceHostBase 继承) |
![]() |
ManualFlowControlLimit | (从 ServiceHostBase 继承) |
![]() |
OpenTimeout | (从 ServiceHostBase 继承) |
![]() |
SecurityTokenServiceConfiguration | |
![]() |
ServiceContract | |
![]() |
SingletonInstance | (从 ServiceHost 继承) |
![]() |
State | (从 CommunicationObject 继承) |
页首
Protected 属性
| 名称 | 说明 | |
|---|---|---|
![]() |
DefaultCloseTimeout | (从 ServiceHostBase 继承) |
![]() |
DefaultOpenTimeout | (从 ServiceHostBase 继承) |
![]() |
ImplementedContracts | (从 ServiceHostBase 继承) |
![]() |
IsDisposed | (从 CommunicationObject 继承) |
![]() |
ThisLock | (从 CommunicationObject 继承) |
页首
Public 方法
(另请参阅 Protected 方法)
| 名称 | 说明 | |
|---|---|---|
![]() |
Abort | (从 CommunicationObject 继承) |
![]() |
AddServiceEndpoint | 已重载。 (从 ServiceHost 继承) |
![]() |
BeginClose | 已重载。 (从 CommunicationObject 继承) |
![]() |
BeginOpen | 已重载。 (从 CommunicationObject 继承) |
![]() |
Close | 已重载。 (从 CommunicationObject 继承) |
![]() |
EndClose | (从 CommunicationObject 继承) |
![]() |
EndOpen | (从 CommunicationObject 继承) |
![]() |
Equals | 已重载。 (从 Object 继承) |
![]() |
GetHashCode | (从 Object 继承) |
![]() |
GetType | (从 Object 继承) |
![]() |
IncrementManualFlowControlLimit | (从 ServiceHostBase 继承) |
![]() |
Open | 已重载。 (从 CommunicationObject 继承) |
![]() ![]() |
ReferenceEquals | (从 Object 继承) |
![]() |
ToString | (从 Object 继承) |
页首
Protected 方法
| 名称 | 说明 | |
|---|---|---|
![]() |
AddBaseAddress | (从 ServiceHostBase 继承) |
![]() |
ApplyConfiguration | 重写。 Override of base class method. Loads WIF configuration and overrides WCF configuration settings with WIF settings. |
![]() |
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. |
![]() |
CreateDescription | (从 ServiceHost 继承) |
![]() |
Fault | (从 CommunicationObject 继承) |
![]() |
Finalize | (从 Object 继承) |
![]() |
GetCommunicationObjectType | (从 CommunicationObject 继承) |
![]() |
InitializeDescription | 已重载。 (从 ServiceHost 继承) |
![]() |
InitializeRuntime | 重写。 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. |
![]() |
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. |
![]() |
LoadConfigurationSection | (从 ServiceHostBase 继承) |
![]() |
MemberwiseClone | (从 Object 继承) |
![]() |
OnAbort | (从 ServiceHostBase 继承) |
![]() |
OnBeginClose | (从 ServiceHostBase 继承) |
![]() |
OnBeginOpen | (从 ServiceHostBase 继承) |
![]() |
OnClose | (从 ServiceHostBase 继承) |
![]() |
OnClosed | (从 ServiceHost 继承) |
![]() |
OnClosing | (从 CommunicationObject 继承) |
![]() |
OnEndClose | (从 ServiceHostBase 继承) |
![]() |
OnEndOpen | (从 ServiceHostBase 继承) |
![]() |
OnFaulted | (从 CommunicationObject 继承) |
![]() |
OnOpen | (从 ServiceHostBase 继承) |
![]() |
OnOpened | (从 ServiceHostBase 继承) |
![]() |
OnOpening | (从 CommunicationObject 继承) |
![]() |
ReleasePerformanceCounters | (从 ServiceHostBase 继承) |
![]() |
ThrowIfDisposed | (从 CommunicationObject 继承) |
![]() |
ThrowIfDisposedOrImmutable | (从 CommunicationObject 继承) |
![]() |
ThrowIfDisposedOrNotOpen | (从 CommunicationObject 继承) |
页首
Public 事件
| 名称 | 说明 | |
|---|---|---|
![]() |
Closed | (从 CommunicationObject 继承) |
![]() |
Closing | (从 CommunicationObject 继承) |
![]() |
Faulted | (从 CommunicationObject 继承) |
![]() |
Opened | (从 CommunicationObject 继承) |
![]() |
Opening | (从 CommunicationObject 继承) |
![]() |
UnknownMessageReceived | (从 ServiceHostBase 继承) |
页首
显式接口实现
| 名称 | 说明 | |
|---|---|---|
| System.IDisposable.Dispose | (从 ServiceHostBase 继承) |
页首
请参见
参考
WSTrustServiceHost 类
Microsoft.IdentityModel.Protocols.WSTrust 命名空间
版权所有 (C) 2008 Microsoft Corporation。保留所有权利。
.gif)
.gif)
.gif)
.gif)
.gif)
.gif)