Ejemplo n.º 1
0
 private void OnGotGossipSeedSources(IAsyncResult ar)
 {
     try {
         var entries = _gossipSeedSource.EndGetHostEndpoints(ar);
         _bus.Publish(new GossipMessage.GotGossipSeedSources(entries));
     } catch (Exception ex) {
         Log.Error(ex, "Error while retrieving cluster members through DNS.");
         _bus.Publish(TimerMessage.Schedule.Create(DnsRetryTimeout, _publishEnvelope,
                                                   new GossipMessage.RetrieveGossipSeedSources()));
     }
 }