Uniquely identifies a IJobDetail.
Inheritance Hierarchy
Quartz.Util Key JobKey
Quartz JobKey
Namespace: Quartz
Assembly: Quartz (in Quartz.dll) Version: 2.2.1.400
Syntax
Remarks
Keys are composed of both a name and group, and the name must be unique within the group. If only a group is specified then the default group name will be used.
Quartz provides a builder-style API for constructing scheduling-related entities via a Domain-Specific Language (DSL). The DSL can best be utilized through the usage of static imports of the methods on the classes TriggerBuilder, JobBuilder, DateBuilder, JobKey, TriggerKey and the various IScheduleBuilder implementations.
Client code can then use the DSL to write code such as this:
IJobDetail job = JobBuilder.Create<MyJob>() .WithIdentity("myJob") .Build(); ITrigger trigger = TriggerBuilder.Create() .WithIdentity("myTrigger", "myTriggerGroup") .WithSimpleSchedule(x => x .WithIntervalInHours(1) .RepeatForever()) .StartAt(DateBuilder.FutureDate(10, IntervalUnit.Minute)) .Build(); scheduler.scheduleJob(job, trigger);
See Also