Beispiel #1
0
        /// <summary>
        /// 作业子类实现作业接口
        /// </summary>
        /// <param name="keys">The keys.</param>
        /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
        public override bool Job(IDictionary <string, string> keys)
        {
            try
            {
                Log.Info(
                    string.Format("{0}-{1}:{2}", JobName + keys["rem"],
                                  "开始",
                                  DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff")));
                var  runDoWorkLogic = new TestLogic();
                bool bak            = runDoWorkLogic.Execution(Log, keys["mod"], keys["rem"]);
                Log.Info(
                    string.Format("{0}-{1}:{2}", JobName + keys["rem"],
                                  "结束",
                                  DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.fff")));
                return(bak);
            }
            catch (Exception ex)
            {
                _logger.ErrorFormat("AuditTemplateWorkFlowJob Error:" + ex.Message + ",StackTrace:" + ex.StackTrace);
            }

            return(false);
        }