问题
How to mark my IJob implementation as durable? I couldn't find any reference to this in quartz .net documentation and I do not use any xml job configurations. Shouldn't there be some kind of attribute like PersistJobDataAfterExecution, DisallowConcurrentExecution or boolean property in IJob interface?
回答1:
var job = JobBuilder.Create<TestJob>()
.WithIdentity(typeof(TestJob).Name)
**.StoreDurably(true)**
.Build();
来源:https://stackoverflow.com/questions/33612215/how-to-mark-job-as-durable-in-quartz-net