You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.5 KiB
C#

1 year ago
using Admin.Core.Common;
1 year ago
using Admin.Core.IService;
1 year ago
using Admin.Core.IService.ISys;
1 year ago
using Admin.Core.Model;
using Admin.Core.PlcServer;
using Admin.Core.Service;
10 months ago
using log4net;
1 year ago
using Quartz;
10 months ago
using Serilog;
1 year ago
using System;
1 year ago
using System.Collections.Generic;
using System.Linq;
1 year ago
using System.Threading.Tasks;
/// <summary>
/// 这里要注意下,命名空间和程序集是一样的,不然反射不到
/// </summary>
namespace Admin.Core.Tasks
{
public class Job_Admin_Quartz : JobBase, IJob
{
1 year ago
private readonly IPmt_AlarmServices _pmtAlarmServices;
private readonly ILR_AlarmlogServices _lrAlarmlogServices;
10 months ago
private static readonly log4net.ILog log = LogManager.GetLogger(typeof(Hw_WarehouseServices));
1 year ago
public Job_Admin_Quartz(ISysTasksQzService SysTasksQzService, ISysJobLogService sysJobLogService,
IPmt_AlarmServices pmtAlarmServices, ILR_AlarmlogServices lrAlarmlogServices)
1 year ago
{
_SysTasksQzService = SysTasksQzService;
_sysJobLogService = sysJobLogService;
1 year ago
_pmtAlarmServices = pmtAlarmServices;
_lrAlarmlogServices = lrAlarmlogServices;
1 year ago
}
public async Task Execute(IJobExecutionContext context)
{
await ExecuteJob(context, async () => await Run(context));
}
1 year ago
public async Task Run(IJobExecutionContext context)
10 months ago
{
await RunAlarm();
}
1 year ago
10 months ago
private async Task RunAlarm()
{
1 year ago
}
10 months ago
1 year ago
}
}