Ejemplo n.º 1
0
 /// <summary>
 /// Called at the end of the application
 /// </summary>
 public static void End()
 {
     if (Bootstrapper != null)
     {
         LogBase Logger = Bootstrapper.Resolve <LogBase>(new NullLogger());
         if (Logger != null)
         {
             Logger.LogMessage("Application ending", MessageType.Info);
             Logger.LogMessage("Starting end tasks", MessageType.Info);
         }
         Bootstrapper.Resolve <TaskManager>().Run(RunTime.End);
         if (Logger != null)
         {
             Logger.Dispose();
             Logger = null;
         }
         Bootstrapper.Dispose();
         Bootstrapper = null;
     }
 }