Helper method that Initializes the SecurityTokenManager that will be exposed through the given ServiceHost. By default the method exposes the SecurityTokenHandlers initialized with IdentityServiceConfiguration through the ServiceHost SecurityTokenManager.
Namespace: Microsoft.IdentityModel.Tokens
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim serviceHost As ServiceHostBase

FederatedServiceCredentials.ConfigureServiceHost(serviceHost)

Syntax

Visual Basic
Public Shared Sub ConfigureServiceHost ( _
		serviceHost As ServiceHostBase _
)
C#
public static void ConfigureServiceHost (
		ServiceHostBase serviceHost
)
C++
public:
static void ConfigureServiceHost (
		ServiceHostBase^ serviceHost
)
J#
public static void ConfigureServiceHost (
		ServiceHostBase serviceHost
)
JScript
public static function ConfigureServiceHost (
		serviceHost : ServiceHostBase
)

Parameters

serviceHost

ServiceHost instance to configure with FederatedSecurityTokenManager.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

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

See Also