PeerResolver.Register(String, PeerNodeAddress, TimeSpan) Método
Definição
Registra um PeerNodeAddress para uma malha ponto a ponto específica.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
Parâmetros
- meshId
- String
A ID da malha ponto a ponto na qual o nó par deve ser registrado.The ID of the peer mesh in which the peer node is to be registered.
- nodeAddress
- PeerNodeAddress
O PeerNodeAddress a ser registrado com a malha ponto a ponto.The PeerNodeAddress to be registered with the peer mesh.
- timeout
- TimeSpan
O período de tempo a esperar por êxito antes de anular a tentativa de registro na malha ponto a ponto.The length of time to wait for success before aborting the attempt to register with the peer mesh. Se a tentativa falhar, a TimeoutException será gerada no par.If the attempt fails, TimeoutException is raised on the peer.
Retornos
Um Object que representa a ID de registro.An Object that represents the registration ID. Esse objeto de ID de registro é passado para os métodos Update(Object, PeerNodeAddress, TimeSpan) e Unregister(Object, TimeSpan).This registration ID object is passed to the Update(Object, PeerNodeAddress, TimeSpan) and Unregister(Object, TimeSpan) methods.