DiscoveryClient 類別

定義

讓您探索可用的服務。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
繼承
DiscoveryClient
實作

建構函式

DiscoveryClient()

建立 DiscoveryClient 類別的新執行個體。Creates a new instance of the DiscoveryClient class.

DiscoveryClient(DiscoveryEndpoint)

使用指定的探索端點,建立 DiscoveryClient 類別的新執行個體。Creates a new instance of the DiscoveryClient class with the specified discovery endpoint.

DiscoveryClient(String)

使用指定端點組態,建立 DiscoveryClient 類別的新執行個體。Creates a new instance of the DiscoveryClient class with the specified endpoint configuration.

屬性

ChannelFactory

取得 DiscoveryClient 的通道處理站。Gets the channel factory for the DiscoveryClient.

ClientCredentials

取得 DiscoveryClient 的用戶端認證。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.

方法

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.

(繼承來源 Object)
Find(FindCriteria)

傳送要求以尋找符合指定準則的服務。Sends a request to find services that match the specified criteria.

FindAsync(FindCriteria)

使用指定準則開始非同步尋找作業。Begins an asynchronous find operation with the specified criteria.

FindAsync(FindCriteria, Object)

使用指定準則和使用者定義的狀態物件開始非同步尋找作業。Begins an asynchronous find operation with the specified criteria and user defined state object.

FindTaskAsync(FindCriteria)

使用指定準則開始非同步尋找工作作業。Begins an asynchronous find task operation with the specified criteria.

FindTaskAsync(FindCriteria, CancellationToken)

使用指定準則和取消語彙基元物件開始非同步尋找工作作業。Begins an asynchronous find task operation with the specified criteria and cancellation token object.

GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
Open()

開啟 DiscoveryClientOpens the DiscoveryClient.

Resolve(ResolveCriteria)

使用指定準則開始非同步解析作業。Begins an asynchronous resolve operation with the specified criteria.

ResolveAsync(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.

ResolveTaskAsync(ResolveCriteria)

使用指定準則開始非同步解析工作作業。Begins an asynchronous resolve task operation with the specified criteria.

ResolveTaskAsync(ResolveCriteria, CancellationToken)

使用指定的準則和取消語彙基元,開始非同步解析工作作業。Begins an asynchronous resolve task operation with the specified criteria and cancellation token.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

事件

FindCompleted

整個尋找作業完成時發生。Occurs when the entire find operation completes.

FindProgressChanged

每次用戶端收到來自特定服務的回應時發生。Occurs every time the client receives a response from a particular service.

ProxyAvailable

從探索 Proxy 收到回應尋找或解析操作的多點傳送隱藏訊息時發生。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.

明確介面實作

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()

提供 Dispose() 方法的實作。Provides an implementation of the Dispose() method.

適用於