我有一个在一定时间间隔内运行的NCron服务。我想向任务传递一个变量,但我还没有找到方法。在NCon Wiki中也没有找到相关信息。是否可能向NCron服务传递任何参数?
如果您不熟悉NCron或需要更多信息:http://code.google.com/p/ncron/
service.At(setting.Interval).Run(setting.ClassInfo);
我有一个在一定时间间隔内运行的NCron服务。我想向任务传递一个变量,但我还没有找到方法。在NCon Wiki中也没有找到相关信息。是否可能向NCron服务传递任何参数?
如果您不熟悉NCron或需要更多信息:http://code.google.com/p/ncron/
service.At(setting.Interval).Run(setting.ClassInfo);
static void ServiceSetup(SchedulingService service)
{
service.Hourly().Run(() => new MyJob("literal"));
service.Daily().Run(() => new MyJob(_field));
}