You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
678 B
30 lines
678 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Quartz;
|
|
|
|
namespace QMTask.DataDeal
|
|
{
|
|
public class SimpleJob2:IJob
|
|
{
|
|
static int i = 0;
|
|
int j = 0;
|
|
public virtual void Execute(IJobExecutionContext context)
|
|
{
|
|
try
|
|
{
|
|
i++;
|
|
j++;
|
|
//任务处理过程
|
|
Console.WriteLine("SimpleJob2-i='" + i + "' -j='" + j + "'");
|
|
context.Result = "true";
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
context.Result = "false";
|
|
throw;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|