PeerResolver PeerResolver PeerResolver PeerResolver Class

定义

指定一个基类型,用于定义对等网格 ID 的注册协定以及将对等网格 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
继承
PeerResolverPeerResolverPeerResolverPeerResolver

注解

此类是实现自定义对等名解析程序的基类。This class is the base class for the implementation of custom peer name resolvers. 对等名解析程序是对等通道用于查找参与对等网格的对等节点的发现服务。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() PeerResolver() PeerResolver()

初始化 PeerResolver 类的新实例。Initializes a new instance of the PeerResolver class.

属性

CanShareReferrals CanShareReferrals CanShareReferrals CanShareReferrals

获取对等名解析程序是否可以共享引用。Gets whether the peer name resolver can share referrals.

方法

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

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

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

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
Initialize(EndpointAddress, Binding, ClientCredentials, PeerReferralPolicy) Initialize(EndpointAddress, Binding, ClientCredentials, PeerReferralPolicy) Initialize(EndpointAddress, Binding, ClientCredentials, PeerReferralPolicy) Initialize(EndpointAddress, Binding, ClientCredentials, PeerReferralPolicy)

使用新提供的终结点地址和设置初始化当前对等解析程序实例。Initializes the current peer resolver instance with the new supplied endpoint address and settings.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
Register(String, PeerNodeAddress, TimeSpan) Register(String, PeerNodeAddress, TimeSpan) Register(String, PeerNodeAddress, TimeSpan) Register(String, PeerNodeAddress, TimeSpan)

为指定的对等网格注册 PeerNodeAddressRegisters a PeerNodeAddress for a specific peer mesh.

Resolve(String, Int32, TimeSpan) Resolve(String, Int32, TimeSpan) Resolve(String, Int32, TimeSpan) Resolve(String, Int32, TimeSpan)

将提供的网格 ID 解析为零或更多参与对等网格的节点的终结点地址。Resolves the supplied mesh ID to zero or more endpoint addresses of nodes participating in the peer mesh.

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

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)
Unregister(Object, TimeSpan) Unregister(Object, TimeSpan) Unregister(Object, TimeSpan) Unregister(Object, TimeSpan)

移除对等网格中某个节点的注册项。Removes the registration entry for a node from a peer mesh.

Update(Object, PeerNodeAddress, TimeSpan) Update(Object, PeerNodeAddress, TimeSpan) Update(Object, PeerNodeAddress, TimeSpan) Update(Object, PeerNodeAddress, TimeSpan)

为在特定对等网格中注册的节点更新 PeerNodeAddressUpdates the PeerNodeAddress for a node registered with a specific peer mesh.

适用于