App.xaml.cs 545 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Configuration;
  4. using System.Data;
  5. using System.Linq;
  6. using System.Threading.Tasks;
  7. using System.Windows;
  8. using MediaBrowser.Controller;
  9. namespace MediaBrowser.ServerApplication
  10. {
  11. /// <summary>
  12. /// Interaction logic for App.xaml
  13. /// </summary>
  14. public partial class App : Application
  15. {
  16. protected override void OnExit(ExitEventArgs e)
  17. {
  18. base.OnExit(e);
  19. Kernel.Instance.Dispose();
  20. }
  21. }
  22. }