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.
21 lines
560 B
C#
21 lines
560 B
C#
using MESDataExtractQuartz.Service;
|
|
using Quartz;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace MESDataExtractQuartz.Job
|
|
{
|
|
public class ExtractMLJob : IJob
|
|
{
|
|
public async Task Execute(IJobExecutionContext context)
|
|
{
|
|
BaseService.ExtractML();
|
|
//向c:\Quartz.txt写入当前时间并换行
|
|
System.IO.File.AppendAllText(@"E:\桌面\Quartz.txt", DateTime.Now + Environment.NewLine);
|
|
}
|
|
}
|
|
}
|