Exemplo 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();
 }
Exemplo n.º 2
0
 public NamingRegisterRequest(NameAssignment nameAssignment)
 {
     NameAssignment = nameAssignment;
 }