DiscoveryWebProxyClient DiscoveryWebProxyClient DiscoveryWebProxyClient DiscoveryWebProxyClient Class

Definition

Implements IDiscoveryService and provides an authenticated connection to the Discovery.svc/web endpoint. This /web endpoint is also used by web resources.

public ref class DiscoveryWebProxyClient : Microsoft::Xrm::Sdk::WebServiceClient::WebProxyClient<Microsoft::Xrm::Sdk::Discovery::IDiscoveryService ^>, Microsoft::Xrm::Sdk::Discovery::IDiscoveryService
public class DiscoveryWebProxyClient : Microsoft.Xrm.Sdk.WebServiceClient.WebProxyClient<Microsoft.Xrm.Sdk.Discovery.IDiscoveryService>, Microsoft.Xrm.Sdk.Discovery.IDiscoveryService
type DiscoveryWebProxyClient = class
    inherit WebProxyClient<IDiscoveryService>
    interface IDiscoveryService
Public Class DiscoveryWebProxyClient
Inherits WebProxyClient(Of IDiscoveryService)
Implements IDiscoveryService
Inheritance
Implements

Remarks

You must set the HeaderToken and SdkClientVersion property values before using the proxy object to make service calls.

To call the Discovery web service using the IDiscoveryService interface, cast the proxy instance to an IDiscoveryService type.

Constructors

DiscoveryWebProxyClient(Uri) DiscoveryWebProxyClient(Uri) DiscoveryWebProxyClient(Uri) DiscoveryWebProxyClient(Uri)

Initializes a new instance of the DiscoveryWebProxyClient class using a Discovery service URL.

DiscoveryWebProxyClient(Uri, TimeSpan) DiscoveryWebProxyClient(Uri, TimeSpan) DiscoveryWebProxyClient(Uri, TimeSpan) DiscoveryWebProxyClient(Uri, TimeSpan)

Initializes a new instance of the DiscoveryWebProxyClient class using a Discovery service URL and a time span.

Methods

CreateNewInitializer() CreateNewInitializer() CreateNewInitializer() CreateNewInitializer()

Creates the WCF proxy client initializer which gets invoked on every SDK method call. This method makes sure that the access token and other header values are added to the outbound call.

Dispose() Dispose() Dispose() Dispose()

Disposes the web proxy client object.

(Inherited from WebProxyClient<TService>)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Disposes the web proxy client object.

(Inherited from WebProxyClient<TService>)
Execute(DiscoveryRequest) Execute(DiscoveryRequest) Execute(DiscoveryRequest) Execute(DiscoveryRequest)

ExecuteCore(DiscoveryRequest) ExecuteCore(DiscoveryRequest) ExecuteCore(DiscoveryRequest) ExecuteCore(DiscoveryRequest)

For internal use only.

Properties

HeaderToken HeaderToken HeaderToken HeaderToken

The access token returned from OAuth authentication.

(Inherited from WebProxyClient<TService>)
SdkClientVersion SdkClientVersion SdkClientVersion SdkClientVersion

The version of your client application.

(Inherited from WebProxyClient<TService>)

Applies to