Exemple #1
0
        public override void OnCreated(IDisaster disaster)
        {
            try
            {
                logger.Info("DDS: OnCreated {0}", disaster);

                disasterWrapper = (DisasterWrapper)disaster;

                conversionField = disasterWrapper.GetType()
                                  .GetField(
                    "m_DisasterTypeToInfoConversion",
                    BindingFlags.NonPublic | BindingFlags.Instance);

                SetConversionTable();
            }
            catch (Exception ex)
            {
                logger.LogException(ex);

                throw;
            }
        }
 public override void OnCreated(IDisaster disasters)
 {
     logger.Info("EvacuationService: OnCreated");
     disasterWrapper = (DisasterWrapper)disasters;
 }