ServiceProxy<TService> Constructor (IServiceConfiguration<TService>, SecurityTokenResponse)
Applies To: Dynamics CRM 2015
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)
Syntax
protected ServiceProxy(
IServiceConfiguration<TService> serviceConfiguration,
SecurityTokenResponse securityTokenResponse
)
protected:
ServiceProxy(
IServiceConfiguration<TService>^ serviceConfiguration,
SecurityTokenResponse^ securityTokenResponse
)
new :
serviceConfiguration:IServiceConfiguration<'TService> *
securityTokenResponse:SecurityTokenResponse -> ServiceProxy
Protected Sub New (
serviceConfiguration As IServiceConfiguration(Of TService),
securityTokenResponse As SecurityTokenResponse
)
Parameters
serviceConfiguration
Type: Microsoft.Xrm.Sdk.Client.IServiceConfiguration<TService>Type: IServiceConfiguration<TService>. A service configuration.
securityTokenResponse
Type: Microsoft.Xrm.Sdk.Client.SecurityTokenResponseType: SecurityTokenResponse. A security token response.
Remarks
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.
See Also
ServiceProxy<TService> Overload
ServiceProxy<TService> Class
Microsoft.Xrm.Sdk.Client Namespace
Return to top
© 2016 Microsoft. All rights reserved. Copyright