Exemple #1
0
 private void NotifyParticipantChanges(DiscoveryEventArgs dea)
 {
     log.Debug("The information about Participants has changed");
     if (ParticipantDiscovery != null)
     {
         ParticipantDiscovery(this, dea);
     }
 }
Exemple #2
0
 public void RegisterEndpoint(Endpoint endpoint)
 {
     if (endpoint != null)
     {
         endpoints.Add(endpoint);
         DiscoveryEventArgs dea = new DiscoveryEventArgs();
         dea.Reason = EventReason.NEW_ENDPOINT;
         dea.EventData = endpoint;
         NotifyEndpointsChanges(dea);
     }
 }
Exemple #3
0
 public void UnregisterParticipant(Participant participant)
 {
     if (participant != null)
     {
         participants.Remove(participant);
         DiscoveryEventArgs dea = new DiscoveryEventArgs();
         dea.Reason = EventReason.DELETED_PARTICIPANT;
         dea.EventData = participant;
         NotifyParticipantChanges(dea);
     }
 }
Exemple #4
0
 private void NotifyEndpointsChanges(DiscoveryEventArgs dea)
 {
     log.Debug("The information about Endpoints has changed");
     if (EndpointDiscovery != null)
     {
         EndpointDiscovery(this, dea);
     }
 }