DiscoveryWebProxyClient Class

 

Updated: November 29, 2016

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

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

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

System.Object
  System.ServiceModel.ClientBase<TChannel>
    Microsoft.Xrm.Sdk.WebServiceClient.WebProxyClient<TService>
      Microsoft.Xrm.Sdk.WebServiceClient.DiscoveryWebProxyClient

public class DiscoveryWebProxyClient : WebProxyClient<IDiscoveryService>, 
	IDiscoveryService

NameDescription
System_CAPS_pubmethodDiscoveryWebProxyClient(Uri)

Initializes a new instance of theDiscoveryWebProxyClient class using a Discovery service URL.

System_CAPS_pubmethodDiscoveryWebProxyClient(Uri, TimeSpan)

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

NameDescription
System_CAPS_protpropertyChannel

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubpropertyChannelFactory

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubpropertyClientCredentials

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubpropertyEndpoint

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubpropertyHeaderToken

The access token returned from OAuth authentication.(Inherited from WebProxyClient<TService>.)

System_CAPS_pubpropertyInnerChannel

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubpropertySdkClientVersion

The version of your client application.(Inherited from WebProxyClient<TService>.)

System_CAPS_pubpropertyState

(Inherited from ClientBase<TChannel>.)

NameDescription
System_CAPS_pubmethodAbort()

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubmethodClose()

(Inherited from ClientBase<TChannel>.)

System_CAPS_protmethodCreateChannel()

(Inherited from ClientBase<TChannel>.)

System_CAPS_protmethodCreateNewInitializer()

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.(Overrides WebProxyClient<TService>.CreateNewInitializer().)

System_CAPS_pubmethodDisplayInitializationUI()

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubmethodDispose()

Disposes the web proxy client object.(Inherited from WebProxyClient<TService>.)

System_CAPS_protmethodDispose(Boolean)

Disposes the web proxy client object.(Inherited from WebProxyClient<TService>.)

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodExecute(DiscoveryRequest)

System_CAPS_protmethodExecuteCore(DiscoveryRequest)

For internal use only.

System_CAPS_protmethodFinalize()

Destructor for the WebProxyClient<TService> class.(Inherited from WebProxyClient<TService>.)

System_CAPS_protmethodGetDefaultValueForInitialization<T>()

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodInvokeAsync(ClientBase<TChannel>.BeginOperationDelegate, Object[], ClientBase<TChannel>.EndOperationDelegate, SendOrPostCallback, Object)

(Inherited from ClientBase<TChannel>.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodOpen()

(Inherited from ClientBase<TChannel>.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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.

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

Community Additions

ADD
Show: