DiscoveryClient DiscoveryClient DiscoveryClient DiscoveryClient Class

Definition

Allows you to discover available services.

public ref class DiscoveryClient sealed : IDisposable, System::ServiceModel::ICommunicationObject
public sealed class DiscoveryClient : IDisposable, System.ServiceModel.ICommunicationObject
type DiscoveryClient = class
    interface ICommunicationObject
    interface IDisposable
Public NotInheritable Class DiscoveryClient
Implements ICommunicationObject, IDisposable
Inheritance
DiscoveryClientDiscoveryClientDiscoveryClientDiscoveryClient
Implements

Constructors

DiscoveryClient() DiscoveryClient() DiscoveryClient() DiscoveryClient()

Creates a new instance of the DiscoveryClient class.

DiscoveryClient(DiscoveryEndpoint) DiscoveryClient(DiscoveryEndpoint) DiscoveryClient(DiscoveryEndpoint) DiscoveryClient(DiscoveryEndpoint)

Creates a new instance of the DiscoveryClient class with the specified discovery endpoint.

DiscoveryClient(String) DiscoveryClient(String) DiscoveryClient(String) DiscoveryClient(String)

Creates a new instance of the DiscoveryClient class with the specified endpoint configuration.

Properties

ChannelFactory ChannelFactory ChannelFactory ChannelFactory

Gets the channel factory for the DiscoveryClient.

ClientCredentials ClientCredentials ClientCredentials ClientCredentials

Gets the client credentials for the DiscoveryClient.

Endpoint Endpoint Endpoint Endpoint

Gets the endpoint used to send discovery messages.

InnerChannel InnerChannel InnerChannel InnerChannel

Gets the channel used to send discovery messages.

Methods

CancelAsync(Object) CancelAsync(Object) CancelAsync(Object) CancelAsync(Object)

Cancels a pending asynchronous operation.

Close() Close() Close() Close()

Closes the discovery client.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Find(FindCriteria) Find(FindCriteria) Find(FindCriteria) Find(FindCriteria)

Sends a request to find services that match the specified criteria.

FindAsync(FindCriteria) FindAsync(FindCriteria) FindAsync(FindCriteria) FindAsync(FindCriteria)

Begins an asynchronous find operation with the specified criteria.

FindAsync(FindCriteria, Object) FindAsync(FindCriteria, Object) FindAsync(FindCriteria, Object) FindAsync(FindCriteria, Object)

Begins an asynchronous find operation with the specified criteria and user defined state object.

FindTaskAsync(FindCriteria) FindTaskAsync(FindCriteria) FindTaskAsync(FindCriteria) FindTaskAsync(FindCriteria)

Begins an asynchronous find task operation with the specified criteria.

FindTaskAsync(FindCriteria, CancellationToken) FindTaskAsync(FindCriteria, CancellationToken) FindTaskAsync(FindCriteria, CancellationToken) FindTaskAsync(FindCriteria, CancellationToken)

Begins an asynchronous find task operation with the specified criteria and cancellation token object.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Open() Open() Open() Open()

Opens the DiscoveryClient.

Resolve(ResolveCriteria) Resolve(ResolveCriteria) Resolve(ResolveCriteria) Resolve(ResolveCriteria)

Begins an asynchronous resolve operation with the specified criteria.

ResolveAsync(ResolveCriteria) ResolveAsync(ResolveCriteria) ResolveAsync(ResolveCriteria) ResolveAsync(ResolveCriteria)

Begins an asynchronous resolve operation with the specified criteria.

ResolveAsync(ResolveCriteria, Object) ResolveAsync(ResolveCriteria, Object) ResolveAsync(ResolveCriteria, Object) ResolveAsync(ResolveCriteria, Object)

Begins an asynchronous resolve operation with the specified criteria and user-defined state object.

ResolveTaskAsync(ResolveCriteria) ResolveTaskAsync(ResolveCriteria) ResolveTaskAsync(ResolveCriteria) ResolveTaskAsync(ResolveCriteria)

Begins an asynchronous resolve task operation with the specified criteria.

ResolveTaskAsync(ResolveCriteria, CancellationToken) ResolveTaskAsync(ResolveCriteria, CancellationToken) ResolveTaskAsync(ResolveCriteria, CancellationToken) ResolveTaskAsync(ResolveCriteria, CancellationToken)

Begins an asynchronous resolve task operation with the specified criteria and cancellation token.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Events

FindCompleted FindCompleted FindCompleted FindCompleted

Occurs when the entire find operation completes.

FindProgressChanged FindProgressChanged FindProgressChanged FindProgressChanged

Occurs every time the client receives a response from a particular service.

ProxyAvailable ProxyAvailable ProxyAvailable ProxyAvailable

Occurs when a multicast suppression message is received from a discovery proxy in response to the find or resolve operation.

ResolveCompleted ResolveCompleted ResolveCompleted ResolveCompleted

Occurs when an asynchronous resolve operation is completed.

Explicit Interface Implementations

ICommunicationObject.Abort() ICommunicationObject.Abort() ICommunicationObject.Abort() ICommunicationObject.Abort()

Causes a communication object to transition immediately from its current state into the closed state.

ICommunicationObject.BeginClose(AsyncCallback, Object) ICommunicationObject.BeginClose(AsyncCallback, Object) ICommunicationObject.BeginClose(AsyncCallback, Object) ICommunicationObject.BeginClose(AsyncCallback, Object)

Begins an asynchronous operation to close a communication object.

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to close a communication object with a specified timeout.

ICommunicationObject.BeginOpen(AsyncCallback, Object) ICommunicationObject.BeginOpen(AsyncCallback, Object) ICommunicationObject.BeginOpen(AsyncCallback, Object) ICommunicationObject.BeginOpen(AsyncCallback, Object)

Begins an asynchronous operation to open a communication object.

ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object) ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to open a communication object within a specified interval of time.

ICommunicationObject.Close() ICommunicationObject.Close() ICommunicationObject.Close() ICommunicationObject.Close()

Causes a communication object to transition from its current state into the closed state.

ICommunicationObject.Close(TimeSpan) ICommunicationObject.Close(TimeSpan) ICommunicationObject.Close(TimeSpan) ICommunicationObject.Close(TimeSpan)

Causes a communication object to transition from its current state into the closed state within a specified interval of time.

ICommunicationObject.Closed ICommunicationObject.Closed ICommunicationObject.Closed ICommunicationObject.Closed

Occurs when the communication object completes its transition from the closing state into the closed state.

ICommunicationObject.Closing ICommunicationObject.Closing ICommunicationObject.Closing ICommunicationObject.Closing

Occurs when the communication object first enters the closing state.

ICommunicationObject.EndClose(IAsyncResult) ICommunicationObject.EndClose(IAsyncResult) ICommunicationObject.EndClose(IAsyncResult) ICommunicationObject.EndClose(IAsyncResult)

Completes an asynchronous operation to close a communication object.

ICommunicationObject.EndOpen(IAsyncResult) ICommunicationObject.EndOpen(IAsyncResult) ICommunicationObject.EndOpen(IAsyncResult) ICommunicationObject.EndOpen(IAsyncResult)

Completes an asynchronous operation to open a communication object.

ICommunicationObject.Faulted ICommunicationObject.Faulted ICommunicationObject.Faulted ICommunicationObject.Faulted

Occurs when the communication object first enters the faulted state.

ICommunicationObject.Open() ICommunicationObject.Open() ICommunicationObject.Open() ICommunicationObject.Open()

Causes a communication object to transition from the created state into the opened state.

ICommunicationObject.Open(TimeSpan) ICommunicationObject.Open(TimeSpan) ICommunicationObject.Open(TimeSpan) ICommunicationObject.Open(TimeSpan)

Causes a communication object to transition from the created state into the opened state within a specified interval of time.

ICommunicationObject.Opened ICommunicationObject.Opened ICommunicationObject.Opened ICommunicationObject.Opened

Occurs when the communication object completes its transition from the opening state into the opened state.

ICommunicationObject.Opening ICommunicationObject.Opening ICommunicationObject.Opening ICommunicationObject.Opening

Occurs when the communication object first enters the opening state.

ICommunicationObject.State ICommunicationObject.State ICommunicationObject.State ICommunicationObject.State

Gets the current state of the communication-oriented object.

IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose() IDisposable.Dispose()

Provides an implementation of the Dispose() method.

Applies to