PeerResolver.Register(String, PeerNodeAddress, TimeSpan) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为指定的对等网格注册 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。
返回
表示注册 ID 的 Object。 此注册 ID 对象将传递给 Update(Object, PeerNodeAddress, TimeSpan) 和 Unregister(Object, TimeSpan) 方法。