DiscoveryWebProxyClient Class
Applies To: Dynamics CRM 2015
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 ref class DiscoveryWebProxyClient : WebProxyClient<IDiscoveryService^>,
IDiscoveryService
type DiscoveryWebProxyClient =
class
inherit WebProxyClient<IDiscoveryService>
interface IDiscoveryService
end
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 with IDiscoveryService web service
Authenticate the user with the web services
Return to top
© 2016 Microsoft. All rights reserved. Copyright