WebProxyClientContextInitializer<TService> Class

 

Updated: November 29, 2016

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

Ensures that the access token and other header values are added to every outbound service call.

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

System.Object
  Microsoft.Xrm.Sdk.WebServiceClient.WebProxyClientContextInitializer<TService>

public abstract class WebProxyClientContextInitializer<TService> : IDisposable
where TService : class

Type Parameters

TService

A web service.

NameDescription
System_CAPS_protmethodWebProxyClientContextInitializer<TService>(WebProxyClient<TService>)

Initializes a new instance of theWebProxyClientContextInitializer<TService> class using a web proxy client.

NameDescription
System_CAPS_pubpropertyServiceProxy

Gets the web proxy client for the service.

NameDescription
System_CAPS_protmethodAddCommonHeaders()

Adds common and required headers to the outbound service call.

System_CAPS_protmethodAddTokenToHeaders()

Adds the access token to the Authorization header of the outbound service call.

System_CAPS_pubmethodDispose()

Disposes the web proxy client context initializer object.

System_CAPS_protmethodDispose(Boolean)

Disposes the web proxy client context initializer object.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

Destructor for WebProxyClient<TService> objects.(Overrides Object.Finalize().)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodInitialize(ClientBase<TService>)

Initializes the WebProxyClientContextInitializer<TService> object using a client base object.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright

Show: