コード例 #1
0
        protected override void OnStart(string[] args)
        {
            EventLog.WriteEntry("Service Wrapper", "Service started",
                                EventLogEntryType.Information);

            _engine.Start();
        }
コード例 #2
0
        private static void RunAsConsole()
        {
            Console.CursorVisible = false;

            Console.WriteLine("Console-Mode (Press enter to exit)");

            HostEngine engine = new HostEngine(true);

            engine.Start();

            Console.ReadLine();
        }