PeerResolver.Register(String, PeerNodeAddress, TimeSpan) 方法

定义

为指定的对等网格注册 PeerNodeAddress

public:
 abstract System::Object ^ Register(System::String ^ meshId, System::ServiceModel::PeerNodeAddress ^ nodeAddress, TimeSpan timeout);
public abstract object Register (string meshId, System.ServiceModel.PeerNodeAddress nodeAddress, TimeSpan timeout);
abstract member Register : string * System.ServiceModel.PeerNodeAddress * TimeSpan -> obj
Public MustOverride Function Register (meshId As String, nodeAddress As PeerNodeAddress, timeout As TimeSpan) As Object

参数

meshId
String

要在其中注册对等节点的对等网格的 ID。

nodeAddress
PeerNodeAddress

要向对等网格注册的 PeerNodeAddress

timeout
TimeSpan

停止尝试向对等网格注册之前,等待成功注册的时间。 如果尝试失败,对等网格上将引发 TimeoutException

返回

Object

表示注册 ID 的 Object。 此注册 ID 对象将传递给 Update(Object, PeerNodeAddress, TimeSpan)Unregister(Object, TimeSpan) 方法。

适用于