TriggerShutdown() public méthode

public TriggerShutdown ( ) : void
Résultat void
Exemple #1
0
 /// <summary>
 /// Tidy before shutdown
 /// </summary>
 public virtual void Close()
 {
     try
     {
         EventManager.TriggerShutdown();
     }
     catch (Exception e)
     {
         m_log.Error(string.Format("[SCENE]: SceneBase.cs: Close() - Failed with exception ", e));
     }
 }
Exemple #2
0
        /// <summary>
        /// Tidy before shutdown
        /// </summary>
        public virtual void Close()
        {
            // Shut down all non shared modules.
            foreach (IRegionModule module in Modules.Values)
            {
                if (!module.IsSharedModule)
                {
                    module.Close();
                }
            }
            Modules.Clear();

            try
            {
                EventManager.TriggerShutdown();
            }
            catch (Exception e)
            {
                m_log.Error(string.Format("[SCENE]: SceneBase.cs: Close() - Failed with exception ", e));
            }
        }