示例#1
0
        private static void Log(ScheduleJob scheduleJob, DateTime startDate, DateTime endDate, string info, ScheduleTaskState state)
        {
            ScheduleExecutionInfo log = new ScheduleExecutionInfo()
            {
                StartDate     = startDate,
                EndDate       = endDate,
                ScheduleJobId = scheduleJob.Id,
                Info          = info,
                State         = (byte)state
            };

            DataService.PerThread.ScheduleExecutionInfoSet.AddObject(log);
            DataService.PerThread.SaveChanges();
        }
示例#2
0
 private static void Log(ScheduleJob scheduleJob, DateTime startDate, DateTime endDate, string info, ScheduleTaskState state)
 {
     ScheduleExecutionInfo log = new ScheduleExecutionInfo()
     {
         StartDate = startDate,
         EndDate = endDate,
         ScheduleJobId = scheduleJob.Id,
         Info = info,
         State = (byte)state
     };
     DataService.PerThread.ScheduleExecutionInfoSet.AddObject(log);
     DataService.PerThread.SaveChanges();
 }