1
我正在嘗試使用NCron調度框架,但它不會超過Bootsrap。 Shoult NCron動態加載此ServiceSetup方法?我懷疑我只是沒有正確使用,但我遵循網站上有限的例子。NCron .NET計劃問題
class Program
{
static void Main(string[] args)
{
Bootstrap.Init(args, ServiceSetup);
}
static void ServiceSetup(SchedulingService service)
{
service.At("0 0/5 * * * ?").Run<MyJob>();
}
}