public void ActionTimedout(ActionProperties properties) { Console.WriteLine("[INFO] Main Server Failed"); if (properties.GetType() == typeof(WaitHearthBeat)) { broker.PEventManager.PublishStoredEvents(this.storedEvents); if(broker.Sequencer.CheckIfPassiveSequencer()) { broker.Sequencer.DifundUnprocessedMessages(); } } this.storedEvents = new List<StoredEvent>(); }
private void PerformTimeoutAlert(ActionProperties ap) { if (ap.GetType() == typeof(DifundPublishEventProperties)) { DifundPublishEventProperties dp = (DifundPublishEventProperties)ap; this.MainEntity.ActionTimedout(dp); } else if (ap.GetType() == typeof(WaitHearthBeat)) { WaitHearthBeat sp = (WaitHearthBeat)ap; this.MainEntity.ActionTimedout(sp); } }