| 123456789101112131415161718192021222324252627 |
- using OASystem.API.OAMethodLib.Quartz.Business;
- using Quartz;
- using QuzrtzJob.Factory;
- namespace OASystem.API.OAMethodLib.Quartz.Jobs
- {
- /// <summary>
- /// hotmail邮件汇总 发送
- /// </summary>
- public class ProcessAndNotifySummaryJob : IJob
- {
- private readonly ILogger<ProcessAndNotifySummaryJob> _logger;
- public ProcessAndNotifySummaryJob(ILogger<ProcessAndNotifySummaryJob> logger)
- {
- _logger = logger;
- }
- public Task Execute(IJobExecutionContext context)
- {
- _logger.LogInformation("hotmail汇总发送邮件 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
- //在此处编写任务业务代码
- ProcessAndNotifySummary.ProcessAndNotifySummaryAsync();
- return Task.CompletedTask;
- }
- }
- }
|