PeerResolver 類別

定義

指定用來定義合約的基底型別,以便將對等網狀結構 ID 註冊並解析至參與網狀結構之節點的端點位址。Specifies a base type used to define the contract for the registration and resolution of a peer mesh ID to the endpoint addresses of nodes participating in the mesh.

public ref class PeerResolver abstract
public abstract class PeerResolver
type PeerResolver = class
Public MustInherit Class PeerResolver
繼承
PeerResolver

備註

這個類別是自訂對等名稱解析程式 (Resolver) 之實作 (Implementation) 的基底類別。This class is the base class for the implementation of custom peer name resolvers. 對等名稱解析程式是對等通道用來尋找參與對等網狀結構之對等節點的探索 (Discovery) 服務。A peer name resolver is a discovery service used by peer channels to find peer nodes participating in a peer mesh. 您也可以使用這個解析程式將節點「註冊」到對等網狀結構,透過這樣的機制使得對等節點成為已知的,並且可從對等網狀結構中取得。It is also used to "register" a node with a peer mesh, the mechanism by which the peer node becomes known and available from the peer mesh.

建構函式

PeerResolver()

初始化 PeerResolver 類別的新執行個體。Initializes a new instance of the PeerResolver class.

屬性

CanShareReferrals

取得一個表示對等名稱解析程式是否可以共用轉介的值。Gets whether the peer name resolver can share referrals.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

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

(繼承來源 Object)
GetType()

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

(繼承來源 Object)
Initialize(EndpointAddress, Binding, ClientCredentials, PeerReferralPolicy)

使用新提供的端點位址和設定,初始化目前的對等解析程式執行個體。Initializes the current peer resolver instance with the new supplied endpoint address and settings.

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
Register(String, PeerNodeAddress, TimeSpan)

為特定對等網狀結構註冊 PeerNodeAddressRegisters a PeerNodeAddress for a specific peer mesh.

Resolve(String, Int32, TimeSpan)

將提供的網狀結構識別碼解析為零或多個參與對等網狀結構之節點的端點位址。Resolves the supplied mesh ID to zero or more endpoint addresses of nodes participating in the peer mesh.

ToString()

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

(繼承來源 Object)
Unregister(Object, TimeSpan)

從對等網狀結構移除節點的註冊項目。Removes the registration entry for a node from a peer mesh.

Update(Object, PeerNodeAddress, TimeSpan)

更新已在特定對等網狀結構中註冊之節點的 PeerNodeAddressUpdates the PeerNodeAddress for a node registered with a specific peer mesh.

適用於