| 1234567891011121314151617181920212223242526272829303132333435363738 |
- using Quartz;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Business.Quartz
- {
- /// <summary>
- /// 排产定时任务
- /// </summary>
- public class ProductionScheduleJob : IJob
- {
- public readonly ProductionScheduleAppService _appService;
- /// <summary>
- /// 构造函数
- /// </summary>
- public ProductionScheduleJob(ProductionScheduleAppService appService)
- {
- _appService = appService;
- }
- /// <summary>
- /// 执行
- /// </summary>
- /// <param name="context"></param>
- /// <returns></returns>
- /// <exception cref="NotImplementedException"></exception>
- public Task Execute(IJobExecutionContext context)
- {
- _appService.DoExt();
- return Task.CompletedTask;
- }
- }
- }
|