DiscoveryService Class

 

Applies To: Dynamics CRM 2013

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
System_CAPS_pubmethod DiscoveryService(CrmConnection)

Initializes a new instance of the DiscoveryService class.

System_CAPS_pubmethod DiscoveryService(IDiscoveryService)

Initializes a new instance of the DiscoveryService class.

System_CAPS_pubmethod DiscoveryService(String)

Initializes a new instance of the DiscoveryService class.

Properties

Name Description
System_CAPS_pubproperty InnerService

Gets the inner service.

Methods

Name Description
System_CAPS_protmethod CheckIfTokenIsExpired(SecurityTokenResponse, Nullable<TimeSpan>)

Checks to see if the token has expired.

System_CAPS_protmethod CreateServiceConfiguration(CrmConnection)

Creates the discovery service configuration.

System_CAPS_protmethod CreateUserTokenResponse(CrmConnection, IServiceConfiguration<IDiscoveryService>)

Creates a user token response.

System_CAPS_pubmethod Dispose()

Dispose of the discovery service.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod Execute(DiscoveryRequest)

Executes a discover service message in the form of a request, and returns a response. (Developer Extensions)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_protmethod GetServiceConfiguration(CrmConnection)

Get the discovery service configuration.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod GetUserTokenResponse(CrmConnection, IServiceConfiguration<IDiscoveryService>)

Get the user token response.

System_CAPS_pubmethod Initialize(String, NameValueCollection)

Initialize the discovery service.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod RegisterDeviceCredentials(ClientCredentials)

Register the device credentials.

System_CAPS_protmethod ToDiscoveryService(CrmConnection)

Gets the discovery service.

System_CAPS_protmethod ToDiscoveryServiceProxy(CrmConnection)

Gets the discovery service proxy.

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Extension Methods

Name Description
System_CAPS_pubmethod 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 2013

Return to top