Breyta

Deila með


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
DiscoveryClient
Implements

Constructors

DiscoveryClient()

Creates a new instance of the DiscoveryClient class.

DiscoveryClient(DiscoveryEndpoint)

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

DiscoveryClient(String)

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

Properties

ChannelFactory

Gets the channel factory for the DiscoveryClient.

ClientCredentials

Gets the client credentials for the DiscoveryClient.

Endpoint

Gets the endpoint used to send discovery messages.

InnerChannel

Gets the channel used to send discovery messages.

Methods

CancelAsync(Object)

Cancels a pending asynchronous operation.

Close()

Closes the discovery client.

Equals(Object)

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

(Inherited from Object)
Find(FindCriteria)

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

FindAsync(FindCriteria, Object)

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

FindAsync(FindCriteria)

Begins an asynchronous find operation with the specified criteria.

FindTaskAsync(FindCriteria, CancellationToken)

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

FindTaskAsync(FindCriteria)

Begins an asynchronous find task operation with the specified criteria.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Open()

Opens the DiscoveryClient.

Resolve(ResolveCriteria)

Begins an asynchronous resolve operation with the specified criteria.

ResolveAsync(ResolveCriteria, Object)

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

ResolveAsync(ResolveCriteria)

Begins an asynchronous resolve operation with the specified criteria.

ResolveTaskAsync(ResolveCriteria, CancellationToken)

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

ResolveTaskAsync(ResolveCriteria)

Begins an asynchronous resolve task operation with the specified criteria.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Events

FindCompleted

Occurs when the entire find operation completes.

FindProgressChanged

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

ProxyAvailable

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

ResolveCompleted

Occurs when an asynchronous resolve operation is completed.

Explicit Interface Implementations

ICommunicationObject.Abort()

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

ICommunicationObject.BeginClose(AsyncCallback, Object)

Begins an asynchronous operation to close a communication object.

ICommunicationObject.BeginClose(TimeSpan, AsyncCallback, Object)

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

ICommunicationObject.BeginOpen(AsyncCallback, Object)

Begins an asynchronous operation to open a communication object.

ICommunicationObject.BeginOpen(TimeSpan, AsyncCallback, Object)

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

ICommunicationObject.Close()

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

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

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

ICommunicationObject.Closing

Occurs when the communication object first enters the closing state.

ICommunicationObject.EndClose(IAsyncResult)

Completes an asynchronous operation to close a communication object.

ICommunicationObject.EndOpen(IAsyncResult)

Completes an asynchronous operation to open a communication object.

ICommunicationObject.Faulted

Occurs when the communication object first enters the faulted state.

ICommunicationObject.Open()

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

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

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

ICommunicationObject.Opening

Occurs when the communication object first enters the opening state.

ICommunicationObject.State

Gets the current state of the communication-oriented object.

IDisposable.Dispose()

Provides an implementation of the Dispose() method.

Applies to