PeerResolver.Register(String, PeerNodeAddress, TimeSpan) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Consente di registrare un indirizzo PeerNodeAddress in una rete di peer specifica.
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
Parametri
- meshId
- String
ID della rete di peer in cui registrare il nodo peer.
- nodeAddress
- PeerNodeAddress
Indirizzo PeerNodeAddress da registrare nella rete di peer.
- timeout
- TimeSpan
Timeout di conferma di esito positivo, scaduto il quale viene annullato il tentativo di registrazione nella rete di peer. Se il tentativo non riesce, viene generata l'eccezione TimeoutException sul peer.
Restituisce
Oggetto Object che rappresenta l'ID di registrazione. Questo oggetto viene passato ai metodi Update(Object, PeerNodeAddress, TimeSpan) e Unregister(Object, TimeSpan).