Example #1
0
File: MDT.cs Project: mavady/ADS
 public void Display(MobilizationCancelled m)
 {
     logger.Info("Display message: " + m);
     Messages.Push(m);
     if (MobilizationCancelled != null)
     {
         MobilizationCancelled(this, EventArgs.Empty);
     }
 }
Example #2
0
        void Start()
        {
            foreach (var i in allocationsToProcess.GetConsumingEnumerable())
            {
                var ambulance = ambulanceRepository.Get(i.AmbulanceId);
                var m         = new MobilizationCancelled(i.AllocationId);

                sender.Send(m, ambulance.Port);
            }
        }