WebProxyClientContextInitializer<TService> Class


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)

Inheritance Hierarchy



public abstract class WebProxyClientContextInitializer<TService> : IDisposable
where TService : class
Public MustInherit Class WebProxyClientContextInitializer(Of TService As Class)
    Implements IDisposable

Type Parameters

  • TService
    A web service.


Name Description
System_CAPS_protmethod WebProxyClientContextInitializer<TService>(WebProxyClient<TService>)

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


Name Description
System_CAPS_pubproperty ServiceProxy

Gets the web proxy client for the service.


Name Description
System_CAPS_protmethod AddCommonHeaders()

Adds common and required headers to the outbound service call.

System_CAPS_protmethod AddTokenToHeaders()

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

System_CAPS_pubmethod Dispose()

Disposes the web proxy client context initializer object.

System_CAPS_protmethod Dispose(Boolean)

Disposes the web proxy client context initializer object.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

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

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod Initialize(ClientBase<TService>)

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

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

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.

See Also

Microsoft.Xrm.Sdk.WebServiceClient Namespace

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright