ServiceProxy<TService> Constructor (IServiceConfiguration<TService>, SecurityTokenResponse)


Updated: November 29, 2016

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Initializes a new instance of the ServiceProxy<TService> class using a service configuration and security token response.

Namespace:   Microsoft.Xrm.Sdk.Client
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

protected ServiceProxy(
	IServiceConfiguration<TService> serviceConfiguration,
	SecurityTokenResponse securityTokenResponse


Type: Microsoft.Xrm.Sdk.Client.IServiceConfiguration<TService>

Type: IServiceConfiguration<TService>. A service configuration.

Type: Microsoft.Xrm.Sdk.Client.SecurityTokenResponse

Type: SecurityTokenResponse. A security token response.

Use this constructor when the service configuration and security token have been acquired externally and only when claims-based authentication is configured.

Do not call the Authenticate method after instantiating a ServiceProxy<TService> derived object using this constructor.

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright