我開始在quartz.net 2.0.1上植入第一個樣本,但它給出了一個錯誤。Quartz.Net JobExecutionContext缺少參考?
我創建了一個名爲QuartzSample
一個asp.net網站aplication我簡單的代碼:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Quartz;
namespace QuartzSample
{
public class Quartz : IJob
{
public void Execute(JobExecutionContext context)
{
SendMail();
}
private void SendMail()
{
// ...
}
}
}
錯誤:
The type or namespace name 'JobExecutionContext' could not be found (are you missing a using directive or an assembly reference?)
JobExecutionContext在石英1.0實施.3(https://quartznet.sourceforge.io/apidoc/1.0/html/) –