using Edu.Education.Helper;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;

namespace Edu.Education
{
    partial class EducationTimerServer : ServiceBase
    {
        public EducationTimerServer()
        {
            InitializeComponent();
        }

        /// <summary>
        ///  在此处添加代码以启动服务。
        /// </summary>
        /// <param name="args"></param>
        protected override void OnStart(string[] args)
        {
            new QuarzHelper().TeachingPerfTimer().GetAwaiter().GetResult();
            new QuarzHelper().OKRPeriodTimer().GetAwaiter().GetResult();
            new QuarzHelper().OKRPeriodRuleTimer().GetAwaiter().GetResult();
            new QuarzHelper().RevenueReportTimer().GetAwaiter().GetResult();
        }

        /// <summary>
        /// 在此处添加代码以执行停止服务所需的关闭操作。
        /// </summary>
        protected override void OnStop()
        {
        }
    }
}
