DiscoveryServiceProxy Members

Implements IDiscoveryService and provides an authenticated WCF channel to the discovery service endpoint.

The following tables list the members exposed by the DiscoveryServiceProxy type.

Public Constructors

  Name Description
  DiscoveryServiceProxy Overloaded. Initializes a new instance of the DiscoveryServiceProxy class.

Top

Public Properties

(see also Protected Properties)

  Name Description
public property ClientCredentials  Gets the login credentials of the client. (inherited from ServiceProxy)
public property DeviceCredentials  Gets the Windows Live credentials of a registered device. (inherited from ServiceProxy)
public property EndpointAutoSwitchEnabled  Gets or sets a value that enables automatic switching from the organization’s current endpoint to an alternate endpoint. (inherited from ServiceProxy)
public property EndpointSwitch  Gets the endpoint switch information from the web service configuration. (inherited from ServiceProxy)
public property HomeRealmSecurityTokenResponse  Gets the security token response of the home realm. (inherited from ServiceProxy)
public property HomeRealmUri  Gets the home realm URI. (inherited from ServiceProxy)
public property IsAuthenticated  Gets a value indicating if the WCF channel has been authenticated. (inherited from ServiceProxy)
public property SecurityTokenResponse  Gets the security token response. (inherited from ServiceProxy)
public property ServiceChannel  Gets the communication channel used to access a Microsoft Dynamics CRM service. (inherited from ServiceProxy)
public property ServiceConfiguration  Gets a service configuration. (inherited from ServiceProxy)
public property ServiceManagement  Gets a service management. (inherited from ServiceProxy)
public property Timeout  Gets or sets the maximum amount of time a single channel operation has to complete before a timeout fault is raised on a service channel binding. (inherited from ServiceProxy)
public property UserPrincipalName  Gets or sets the UPN that is an Internet-style login name for a user based on the Internet standard RFC 822. (inherited from ServiceProxy)

Top

Protected Properties

  Name Description
protected property ChannelFactory  Gets a WCF channel factory that manages a single channel instance. (inherited from ServiceProxy)

Top

Public Methods

(see also Protected Methods)

  Name Description
public method Authenticate  Closes the service channel and channel factory if they are open, and then invokes AuthenticateCore. (inherited from ServiceProxy)
public method AuthenticateCrossRealm  Invokes AuthenticateCrossRealmCore. (inherited from ServiceProxy)
public method AuthenticateDevice  Invokes AuthenticateDeviceCore. (inherited from ServiceProxy)
public method Dispose  Overloaded. Methods that explicitly free allocated service channel resources. (inherited from ServiceProxy)
public method Equals  (inherited from Object)
public method Execute See IDiscoveryService.Execute
public method GetHashCode  (inherited from Object)
public method GetType  (inherited from Object)
public method SwitchToAlternateEndpoint  Switches the organization’s current endpoint to an alternate endpoint, if one is available. (inherited from ServiceProxy)
public method ToString  (inherited from Object)

Top

Protected Methods

  Name Description
protected method AuthenticateCore  Authenticates the client with a service. (inherited from ServiceProxy)
protected method AuthenticateCrossRealmCore  Authenticates a user in a realm other than the realm that the Microsoft Dynamics CRM server is located in. (inherited from ServiceProxy)
protected method AuthenticateDeviceCore  Authenticates a device with Windows Live. (inherited from ServiceProxy)
protected method CloseChannel  Closes a validated service channel. (inherited from ServiceProxy)
protected method Dispose  Overloaded. Methods that explicitly free allocated service channel resources. (inherited from ServiceProxy)
protected method Finalize  Overridden. Implicitly frees allocated service channel and service factory resources. (inherited from Object)
protected method HandleFailover  Overloaded. For internal use only. (inherited from ServiceProxy)
protected method MemberwiseClone  (inherited from Object)
protected method OnFactoryClosed  Event handler virtual method for a channel factory that is in a closed state. (inherited from ServiceProxy)
protected method OnFactoryFaulted  Event handler virtual method for a channel factory that is in a faulted state. (inherited from ServiceProxy)
protected method OnFactoryOpened  Event handler virtual method for a channel factory that is in an opened state. (inherited from ServiceProxy)
protected method ShouldRetry  Checks a message security exception to determine if a service call should be attempted again. (inherited from ServiceProxy)
protected method ValidateAuthentication  Authenticates the client and creates a new service channel. (inherited from ServiceProxy)

Top

Public Events

  Name Description
public event EndpointSwitched  Occurs when a failover recovery has completed and the organization’s current endpoint has been switched to an alternate endpoint. (inherited from ServiceProxy)
public event EndpointSwitchRequired  Occurs when a failover has occurred and a switch from the organization’s current endpoint to an alternate endpoint is required. (inherited from ServiceProxy)
public event FactoryClosed  Occurs when a channel factory is closed.  (inherited from ServiceProxy)
public event FactoryFaulted  Occurs when a channel factory is faulted. (inherited from ServiceProxy)
public event FactoryOpened  Occurs when a channel factory is opened. (inherited from ServiceProxy)

Top

See Also

Reference

DiscoveryServiceProxy Class
Microsoft.Xrm.Sdk.Client Namespace

Other Resources

Sample: Access the Discovery Service
Helper Code: ServerConnection Class

Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.