Initializes an instance of WSTrustServiceHost.
Namespace: Microsoft.IdentityModel.Protocols.WSTrust
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim serviceContract As WSTrustServiceContract
Dim baseAddresses As Uri()

Dim instance As New WSTrustServiceHost(serviceContract, baseAddresses)

Syntax

Visual Basic
Public Sub New ( _
		serviceContract As WSTrustServiceContract, _
		ParamArray baseAddresses As Uri() _
)
C#
public WSTrustServiceHost (
		WSTrustServiceContract serviceContract,
		params Uri[] baseAddresses
)
C++
public:
WSTrustServiceHost (
		WSTrustServiceContract^ serviceContract, 
		... array<Uri^>^ baseAddresses
)
J#
public WSTrustServiceHost (
		WSTrustServiceContract serviceContract, 
		Uri[] baseAddresses
)
JScript
public function WSTrustServiceHost (
		serviceContract : WSTrustServiceContract, 
		... baseAddresses : Uri[]
)

Parameters

serviceContract

ServiceContract implementation to use.

baseAddresses

BaseAddress collection for the service host.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

See Also