WSTrustServiceHost Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the WSTrustServiceHost class.
Overloads
WSTrustServiceHost(SecurityTokenServiceConfiguration, Uri[]) |
Initializes a new instance of the WSTrustServiceHost class with the specified base addresses and service (STS) configuration settings. |
WSTrustServiceHost(WSTrustServiceContract, Uri[]) |
Initializes a new instance of the WSTrustServiceHost class with the specified base addresses and service contract. |
WSTrustServiceHost(SecurityTokenServiceConfiguration, Uri[])
Initializes a new instance of the WSTrustServiceHost class with the specified base addresses and service (STS) configuration settings.
public:
WSTrustServiceHost(System::IdentityModel::Configuration::SecurityTokenServiceConfiguration ^ securityTokenServiceConfiguration, ... cli::array <Uri ^> ^ baseAddresses);
public WSTrustServiceHost (System.IdentityModel.Configuration.SecurityTokenServiceConfiguration securityTokenServiceConfiguration, params Uri[] baseAddresses);
new System.ServiceModel.Security.WSTrustServiceHost : System.IdentityModel.Configuration.SecurityTokenServiceConfiguration * Uri[] -> System.ServiceModel.Security.WSTrustServiceHost
Public Sub New (securityTokenServiceConfiguration As SecurityTokenServiceConfiguration, ParamArray baseAddresses As Uri())
Parameters
- securityTokenServiceConfiguration
- SecurityTokenServiceConfiguration
A SecurityTokenServiceConfiguration that contains the STS settings to use to initialize the service host.
Remarks
A default WSTrustServiceContract is created using the specified SecurityTokenServiceConfiguration instance.
The SecurityTokenServiceConfiguration instance is used for one-time initialization of the ServiceHost; for this reason, setting properties on the configuration instance after the host is initialized may not result in behavior changes.
Applies to
WSTrustServiceHost(WSTrustServiceContract, Uri[])
Initializes a new instance of the WSTrustServiceHost class with the specified base addresses and service contract.
public:
WSTrustServiceHost(System::ServiceModel::Security::WSTrustServiceContract ^ serviceContract, ... cli::array <Uri ^> ^ baseAddresses);
public WSTrustServiceHost (System.ServiceModel.Security.WSTrustServiceContract serviceContract, params Uri[] baseAddresses);
new System.ServiceModel.Security.WSTrustServiceHost : System.ServiceModel.Security.WSTrustServiceContract * Uri[] -> System.ServiceModel.Security.WSTrustServiceHost
Public Sub New (serviceContract As WSTrustServiceContract, ParamArray baseAddresses As Uri())
Parameters
- serviceContract
- WSTrustServiceContract
A WSTrustServiceContract that represents the service contract to use.