DiscoveryWebProxyClient Class
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)
Inheritance Hierarchy
System.Object
System.ServiceModel.ClientBase<TChannel>
Microsoft.Xrm.Sdk.WebServiceClient.WebProxyClient<TService>
Microsoft.Xrm.Sdk.WebServiceClient.DiscoveryWebProxyClient
Syntax
public class DiscoveryWebProxyClient : WebProxyClient<IDiscoveryService>,
IDiscoveryService
Public Class DiscoveryWebProxyClient
Inherits WebProxyClient(Of IDiscoveryService)
Implements IDiscoveryService
Constructors
Name | Description | |
---|---|---|
DiscoveryWebProxyClient(Uri) | Initializes a new instance of theDiscoveryWebProxyClient class using a Discovery service URL. |
|
DiscoveryWebProxyClient(Uri, TimeSpan) | Initializes a new instance of theDiscoveryWebProxyClient class using a Discovery service URL and a time span. |
Properties
Name | Description | |
---|---|---|
Channel | (Inherited from ClientBase<TChannel>.) |
|
ChannelFactory | (Inherited from ClientBase<TChannel>.) |
|
ClientCredentials | (Inherited from ClientBase<TChannel>.) |
|
Endpoint | (Inherited from ClientBase<TChannel>.) |
|
HeaderToken | The access token returned from OAuth authentication.(Inherited from WebProxyClient<TService>.) |
|
InnerChannel | (Inherited from ClientBase<TChannel>.) |
|
SdkClientVersion | The version of your client application.(Inherited from WebProxyClient<TService>.) |
|
State | (Inherited from ClientBase<TChannel>.) |
Methods
Explicit Interface Implementations
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.
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
Discover the URL for your organization using the Organization Service
Authenticate the user with the web services
Return to top
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright