Ejemplo n.º 1
0
 public static void Shutdown()
 {
     foreach (var instance in Active)
     {
         try
         {
             instance.Dispose();
         }
         catch (Exception e)
         {
             Logger.Write(typeof(UIBehaviour), LogLevel.Warn, "Instance failed to dispose: {0}", e.Message);
         }
     }
     if (Active.Any())
     {
         Logger.Write(typeof(UIBehaviour), LogLevel.Warn, "Some instances failed to disposed.");
     }
 }