This topic has not yet been rated - Rate this topic

DiscoveryClient Class

Allows you to discover available services.

System.Object
  System.ServiceModel.Discovery.DiscoveryClient

Namespace:  System.ServiceModel.Discovery
Assembly:  System.ServiceModel.Discovery (in System.ServiceModel.Discovery.dll)
public sealed class DiscoveryClient : ICommunicationObject, 
	IDisposable

The DiscoveryClient type exposes the following members.

  Name Description
Public method DiscoveryClient() Creates a new instance of the DiscoveryClient class.
Public method DiscoveryClient(DiscoveryEndpoint) Creates a new instance of the DiscoveryClient class.
Public method DiscoveryClient(String) Creates a new instance of the DiscoveryClient class with the specified endpoint configuration.
Top
  Name Description
Public property ChannelFactory Gets the channel factory for the DiscoveryClient.
Public property ClientCredentials Gets the client credentials for the DiscoveryClient.
Public property Endpoint Gets the endpoint used to send discovery messages.
Public property InnerChannel Gets the channel used to send discovery messages.
Top
  Name Description
Public method CancelAsync Cancels a pending asynchronous operation.
Public method Close Closes the discovery client.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Find Sends a request to find services that match the specified criteria.
Public method FindAsync(FindCriteria) Begins an asynchronous find operation with the specified criteria.
Public method FindAsync(FindCriteria, Object) Begins an asynchronous find operation with the specified criteria and user defined state object.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Open Opens the DiscoveryClient.
Public method Resolve Begins an asynchronous resolve operation with the specified criteria.
Public method ResolveAsync(ResolveCriteria) Begins an asynchronous resolve operation with the specified criteria.
Public method ResolveAsync(ResolveCriteria, Object) Begins an asynchronous resolve operation with the specified criteria and user-defined state object.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
  Name Description
Public event FindCompleted Occurs when the entire find operation completes.
Public event FindProgressChanged Occurs every time the client receives a response from a particular service.
Public event ProxyAvailable Occurs when a multicast suppression message is received from a discovery proxy in response to the find or resolve operation.
Public event ResolveCompleted Occurs when an asynchronous resolve operation is completed.
Top
  Name Description
Explicit interface implemetation Private method ICommunicationObject.Abort Causes a communication object to transition immediately from its current state into the closed state.
Explicit interface implemetation Private method ICommunicationObject.BeginClose(AsyncCallback, Object) Begins an asynchronous operation to close a communication object.
Explicit interface implemetation Private method ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object) Begins an asynchronous operation to close a communication object with a specified timeout.
Explicit interface implemetation Private method ICommunicationObject.BeginOpen(AsyncCallback, Object) Begins an asynchronous operation to open a communication object.
Explicit interface implemetation Private method ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object) Begins an asynchronous operation to open a communication object within a specified interval of time.
Explicit interface implemetation Private method ICommunicationObject.Close() Causes a communication object to transition from its current state into the closed state.
Explicit interface implemetation Private method ICommunicationObject.Close(TimeSpan) Causes a communication object to transition from its current state into the closed state.
Explicit interface implemetation Private event ICommunicationObject.Closed Occurs when the communication object completes its transition from the closing state into the closed state.
Explicit interface implemetation Private event ICommunicationObject.Closing Occurs when the communication object first enters the closing state.
Explicit interface implemetation Private method ICommunicationObject.EndClose Completes an asynchronous operation to close a communication object.
Explicit interface implemetation Private method ICommunicationObject.EndOpen Completes an asynchronous operation to open a communication object.
Explicit interface implemetation Private event ICommunicationObject.Faulted Occurs when the communication object first enters the faulted state.
Explicit interface implemetation Private method ICommunicationObject.Open() Causes a communication object to transition from the created state into the opened state.
Explicit interface implemetation Private method ICommunicationObject.Open(TimeSpan) Causes a communication object to transition from the created state into the opened state within a specified interval of time.
Explicit interface implemetation Private event ICommunicationObject.Opened Occurs when the communication object completes its transition from the opening state into the opened state.
Explicit interface implemetation Private event ICommunicationObject.Opening Occurs when the communication object first enters the opening state.
Explicit interface implemetation Private property ICommunicationObject.State Gets the current state of the communication-oriented object.
Explicit interface implemetation Private method IDisposable.Dispose An implementation of the Dispose() method.
Top

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ