DiscoveryService Class
Applies To: Dynamics CRM 2015
A wrapper class around the IDiscoveryService that manages the details of setting up an DiscoveryServiceProxy. (Developer Extensions)
Namespace: Microsoft.Xrm.Client.Services
Assembly: Microsoft.Xrm.Client (in Microsoft.Xrm.Client.dll)
Inheritance Hierarchy
System.Object
Microsoft.Xrm.Client.Services.DiscoveryService
Syntax
public class DiscoveryService : IDisposable, IDiscoveryService,
IInitializable
public ref class DiscoveryService : IDisposable, IDiscoveryService,
IInitializable
type DiscoveryService =
class
interface IDisposable
interface IDiscoveryService
interface IInitializable
end
Public Class DiscoveryService
Implements IDisposable, IDiscoveryService, IInitializable
Constructors
Name | Description | |
---|---|---|
DiscoveryService(CrmConnection) | Initializes a new instance of the DiscoveryService class. |
|
DiscoveryService(IDiscoveryService) | Initializes a new instance of the DiscoveryService class. |
|
DiscoveryService(String) | Initializes a new instance of the DiscoveryService class. |
Properties
Name | Description | |
---|---|---|
InnerService | Gets the inner service. |
Methods
Name | Description | |
---|---|---|
CheckIfTokenIsExpired(SecurityTokenResponse, Nullable<TimeSpan>) | Checks to see if the token has expired. |
|
CreateServiceConfiguration(CrmConnection) | Creates the discovery service configuration. |
|
CreateUserTokenResponse(CrmConnection, IServiceConfiguration<IDiscoveryService>) | Creates a user token response. |
|
Dispose() | Dispose of the discovery service. |
|
Equals(Object) | (Inherited from Object.) |
|
Execute(DiscoveryRequest) | Executes a discover service message in the form of a request, and returns a response. (Developer Extensions) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetServiceConfiguration(CrmConnection) | Get the discovery service configuration. |
|
GetType() | (Inherited from Object.) |
|
GetUserTokenResponse(CrmConnection, IServiceConfiguration<IDiscoveryService>) | Get the user token response. |
|
Initialize(String, NameValueCollection) | Initialize the discovery service. |
|
MemberwiseClone() | (Inherited from Object.) |
|
RegisterDeviceCredentials(ClientCredentials) | Register the device credentials. |
|
ToDiscoveryService(CrmConnection) | Gets the discovery service. |
|
ToDiscoveryServiceProxy(CrmConnection) | Gets the discovery service proxy. |
|
ToString() | (Inherited from Object.) |
Extension Methods
Name | Description | |
---|---|---|
SerializeByJson(IEnumerable<Type>) | Serialize an object using the DataContractJsonSerializer.(Defined by ObjectExtensions.) |
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.Client.Services Namespace
Developer extensions for Microsoft Dynamics CRM 2015
Return to top
© 2017 Microsoft. All rights reserved. Copyright