Beispiel #1
0
 private void ProcessMessage(AnnounceRegistrationMessage message)
 {
     if (CheckNeighbor(message)) return;
     foreach (var endPoint in message.EndPoints)
     {
         SendMessage(endPoint, new ReplyRegistrationMessage { EndPoints = receiver.EndPoints, Neighbors = neighbors });
         AddNeighbor(message.PeerId, endPoint);
     }
     OnApplicationJoined(message.EndPoints);
 }
Beispiel #2
0
 public void RegisterInCloud()
 {
     var msg = new AnnounceRegistrationMessage { EndPoints = receiver.EndPoints };
     SendBroadcastMessage(msg);
     registeredInCloud = true;
 }