2
我正在開發使用Quartz .NET的簡單調度器。我想Quartz堅持數據庫中的所有作業和觸發器,所以我設置AdoJobStore和「正常」作業它工作正常。使用Quartz .NET和AdoJobStore調度泛型IJob <>
現在,我從數據庫通用作業反序列化的問題。我有類:
class DefaultJob<TEventType, TArgsType> : IJob{
public void Execute(IJobExecutionContext context)
{
//do sth
}
}
隨着RamJobStore和DefaultJob <,> everyting是確定的 - 安排和運行工作。
隨着AdoJobStore和DefaultJob <,>我可以安排,石英保存到數據庫(我可以通過Management Studio中看到它),但是,當它試圖從數據庫恢復,我越來越:
A first chance exception of type 'System.ArgumentException' occurred in mscorlib.dll
A first chance exception of type 'Quartz.JobPersistenceException' occurred in Quartz.dll
A first chance exception of type 'Quartz.JobPersistenceException' occurred in Quartz.dll
我放棄了JobFactory,方法NewJob根本沒有被調用。在它之前發生了一些錯誤。
有人可以幫忙嗎?