Esempio n. 1
0
        public void Run(JobContext context)
        {
            Stopwatch sw = Stopwatch.StartNew();

            Console.ForegroundColor = ConsoleColor.Green;
            WriteLog("************************************************");
            WriteLog("*");
            WriteLog("*  在没有提示可以安全退出时,不要人为退出程序。");
            WriteLog("*  否则,可能造成数据导入异常");
            WriteLog("*");
            WriteLog("************************************************");
            Console.ResetColor();

            try
            {
                SendMKTPointEmailBP.Start(context);
            }
            catch (Exception ex)
            {
                WriteLog(ex);
            }

            sw.Stop();
            WriteLog(string.Format("检查结束 {0}", DateTime.Now));
            WriteLog(string.Format("本次任务共耗时 {0} 秒", sw.Elapsed.TotalSeconds));
        }
 /// <summary>
 /// JON Console Run Point
 /// </summary>
 /// <param name="context"></param>
 public void Run(JobContext context)
 {
     SendMKTPointEmailBP.Start(context);
 }