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.
31 lines
755 B
31 lines
755 B
4 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
|
using System.Text;
|
||
|
using Quartz;
|
||
|
|
||
|
namespace QMTask.DataDeal
|
||
|
{
|
||
|
public class SimpleJob:IJob
|
||
|
{
|
||
|
public virtual void Execute(IJobExecutionContext context)
|
||
|
{
|
||
|
try
|
||
|
{
|
||
|
//任务处理过程
|
||
|
System.Threading.Thread.Sleep(10);
|
||
|
Console.WriteLine("SimpleJob");
|
||
|
context.Result = "true";
|
||
|
|
||
|
//QMAPP.ServicesAgent.ServiceAgent sa=new ServiceUtil().GetServiceAgent();
|
||
|
//sa.InvokeServiceFunction("fn_1");
|
||
|
}
|
||
|
catch (Exception ex)
|
||
|
{
|
||
|
context.Result = "false";
|
||
|
throw;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|