| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 | 
							- using System;
 
- using System.Collections.Generic;
 
- using System.Configuration;
 
- using System.Data;
 
- using System.Linq;
 
- using System.Threading.Tasks;
 
- using System.Windows;
 
- using Microsoft.Shell;
 
- using MediaBrowser.Controller;
 
- namespace MediaBrowser.ServerApplication
 
- {
 
-     /// <summary>
 
-     /// Interaction logic for App.xaml
 
-     /// </summary>
 
-     public partial class App : Application, ISingleInstanceApp
 
-     {
 
-         private const string Unique = "MediaBrowser3";
 
-         
 
-         [STAThread]
 
-         public static void Main()
 
-         {
 
-             if (SingleInstance<App>.InitializeAsFirstInstance(Unique))
 
-             {
 
-                 var application = new App();
 
-                 application.InitializeComponent();
 
-                 application.Run();
 
-                 // Allow single instance code to perform cleanup operations
 
-                 SingleInstance<App>.Cleanup();
 
-             }
 
-         }
 
-         #region ISingleInstanceApp Members
 
-         public bool SignalExternalCommandLineArgs(IList<string> args)
 
-         {
 
-             OpenDashboard();
 
-             return true;
 
-         }
 
-         #endregion
 
-         protected override void OnExit(ExitEventArgs e)
 
-         {
 
-             base.OnExit(e);
 
-             Kernel.Instance.Dispose();
 
-         }
 
-         public static void OpenDashboard()
 
-         {
 
-         }
 
-     }
 
- }
 
 
  |