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