Udostępnij za pośrednictwem


WebProxyClientContextInitializer<TService> Class

 

Applies To: Dynamics CRM 2015

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

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

Syntax

public abstract class WebProxyClientContextInitializer<TService> : IDisposable
where TService : class
generic<typename TService>
where TService : ref class
public ref class WebProxyClientContextInitializer abstract : IDisposable
[<AbstractClass>]
type WebProxyClientContextInitializer<'TService when 'TService : not struct> = 
    class
        interface IDisposable
    end
Public MustInherit Class WebProxyClientContextInitializer(Of TService As Class)
    Implements IDisposable

Type Parameters

  • TService
    A web service.

Constructors

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

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

Properties

Name Description
System_CAPS_pubproperty ServiceProxy

Gets the web proxy client for the service.

Methods

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

© 2016 Microsoft. All rights reserved. Copyright