/// <summary> /// Internal helper to execute the service in forced debug mode. /// </summary> /// <param name="args"></param> private static void ForceDebug(string[] args) { EmuService svc = new EmuService(); svc.ForceStartCLI(args); Console.WriteLine(">>> Press Q to quit"); while (Console.ReadKey().KeyChar.ToString().ToUpper() != "Q") { ; } svc.ForceStopCLI(); Environment.Exit(0); }
/** * Methods */ /// <summary> /// Initializes a new instance of the <see cref="EmuService"/> class. /// </summary> public EmuService() { instance = this; ServiceName = _ServiceName; }