DiscoveryWebProxyClient Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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) |
Initializes a new instance of the DiscoveryWebProxyClient class using a Discovery service URL. |
DiscoveryWebProxyClient(Uri, TimeSpan) |
Initializes a new instance of the DiscoveryWebProxyClient class using a Discovery service URL and a time span. |
Properties
HeaderToken |
The access token returned from OAuth authentication. (Inherited from WebProxyClient<TService>) |
SdkClientVersion |
The version of your client application. (Inherited from WebProxyClient<TService>) |
Methods
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() |
Disposes the web proxy client object. (Inherited from WebProxyClient<TService>) |
Dispose(Boolean) |
Disposes the web proxy client object. (Inherited from WebProxyClient<TService>) |
Execute(DiscoveryRequest) | |
ExecuteCore(DiscoveryRequest) |
For internal use only. |