Esempio n. 1
0
 /// <summary>
 /// Synchronously register the id and endpoint with the NameServer.
 /// </summary>
 /// <param name="id">The identifier</param>
 /// <param name="endpoint">The endpoint</param>
 public void Register(string id, IPEndPoint endpoint)
 {
     NameAssignment assignment = new NameAssignment(id, endpoint);
     _client.Send(new NamingRegisterRequest(assignment));
     _registerResponseQueue.Take();
 }
 public NamingRegisterRequest(NameAssignment nameAssignment)
 {
     NameAssignment = nameAssignment;
 }