29 lines
651 B
C#
29 lines
651 B
C#
using Quartz;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using WPFWCSDemo.Models.Tables;
|
|
using WPFWCSDemo.Schedules.CircleRGV;
|
|
using WPFWCSDemo.Schedules.CommonTask;
|
|
|
|
namespace WPFWCSDemo.Schedules.CommonTask
|
|
{
|
|
public class CommonTask : IJob
|
|
{
|
|
public async Task Execute(IJobExecutionContext context)
|
|
{
|
|
await Task.Run(() =>
|
|
{
|
|
//bool b = await Common.GetPingForRGVStation("192.168.6.100");
|
|
|
|
Common.RecordRequestValue();
|
|
|
|
});
|
|
|
|
//return Task.CompletedTask;
|
|
}
|
|
}
|
|
}
|