Muokkaa

Jaa


WSTrustServiceHost Constructors

Definition

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.

baseAddresses
Uri[]

An array of Uri that contains the base addresses for 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.

baseAddresses
Uri[]

An array of Uri that contains the base addresses for the service host.

Exceptions

baseAddresses is null.

-or-

serviceContract is null.

Applies to