Editar

Compartilhar via


PeerResolver.Register(String, PeerNodeAddress, TimeSpan) Method

Definition

Registers a PeerNodeAddress for a specific peer mesh.

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

Parameters

meshId
String

The ID of the peer mesh in which the peer node is to be registered.

nodeAddress
PeerNodeAddress

The PeerNodeAddress to be registered with the peer mesh.

timeout
TimeSpan

The length of time to wait for success before aborting the attempt to register with the peer mesh. If the attempt fails, TimeoutException is raised on the peer.

Returns

An Object that represents the registration ID. This registration ID object is passed to the Update(Object, PeerNodeAddress, TimeSpan) and Unregister(Object, TimeSpan) methods.

Applies to