WSTrustServiceHost Constructor (SecurityTokenServiceConfiguration, Uri[])
Collapse the table of content
Expand the table of content

WSTrustServiceHost Constructor (SecurityTokenServiceConfiguration, Uri[])

.NET Framework (current version)
 

Initializes a new instance of the WSTrustServiceHost class with the specified base addresses and service (STS) configuration settings.

Namespace:   System.ServiceModel.Security
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public WSTrustServiceHost(
	SecurityTokenServiceConfiguration securityTokenServiceConfiguration,
	params Uri[] baseAddresses
)

Parameters

securityTokenServiceConfiguration
Type: System.IdentityModel.Configuration.SecurityTokenServiceConfiguration

A SecurityTokenServiceConfiguration that contains the STS settings to use to initialize the service host.

baseAddresses
Type: System.Uri[]

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

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.

.NET Framework
Available since 4.5
Return to top
Show:
© 2016 Microsoft