Exemplo n.º 1
0
        /// <summary>
        /// 邮件定时提醒:近三天没有处理过的Ticket
        /// </summary>
        void Timer_Reminder(object sender, System.Timers.ElapsedEventArgs e)
        {
            try
            {
                string startInfo = string.Format("{0} Reminding the start", DateTime.Now);
                WriteLog(startInfo);

                ReminderManager reminderManager = new ReminderManager();
                reminderManager.ReminderAll();

                string completeInfo = string.Format("{0} Reminding the end.After {1} minutes, it will run again.", DateTime.Now, ReminderConfig.RunTimeInterval());
                WriteLog(completeInfo);
            }
            catch (Exception exception)
            {
                WriteLog("程序异常:" + exception.Message);
            }
        }