예제 #1
0
파일: Revalee.cs 프로젝트: javafun/Revalee
        protected override void OnShutdown()
        {
            try
            {
                Supervisor.Shutdown();
            }
            catch { }

            base.OnShutdown();

            this.Stop();
        }
예제 #2
0
파일: Revalee.cs 프로젝트: javafun/Revalee
        protected override void OnCustomCommand(int command)
        {
            if (command == SERVICE_CONTROL_PRESHUTDOWN)
            {
                try
                {
                    Supervisor.Shutdown();
                }
                catch { }
            }

            base.OnCustomCommand(command);

            this.Stop();
        }