Class ScheduleJobBase
- Namespace
- H.Controls.ScheduleBox
- Assembly
- H.Controls.ScheduleBox.dll
public abstract class ScheduleJobBase : DisplayBindableBase, INotifyPropertyChanged, IDisplayBindable, IIconable, INameable, IOrderable, IGroupable, IDable, IDescriptionable, IScheduleJob, IJob
- Inheritance
-
ScheduleJobBase
- Implements
-
IJob
- Derived
- Inherited Members
- Extension Methods
Constructors
ScheduleJobBase()
public ScheduleJobBase()
Properties
AddTriggerCommand
public RelayCommand AddTriggerCommand { get; }
Property Value
DeleteTriggerCommand
public RelayCommand DeleteTriggerCommand { get; }
Property Value
EditCommand
public RelayCommand EditCommand { get; }
Property Value
GroupName
获取或设置对象的分组名称。
[JsonIgnore]
[Browsable(true)]
[Display(Name = "任务分组")]
public override string GroupName { get; set; }
Property Value
IsRunning
public bool IsRunning { get; set; }
Property Value
Key
[Display(Name = "唯一标识")]
public string Key { get; set; }
Property Value
Message
public string Message { get; set; }
Property Value
NextFireTime
public DateTime? NextFireTime { get; set; }
Property Value
TriggerSource
public ObservableCollection<IScheduleTrigger> TriggerSource { get; }
Property Value
Triggers
public ObservableCollection<IScheduleTrigger> Triggers { get; set; }
Property Value
Methods
Execute(IJobExecutionContext)
Called by the Quartz.IScheduler when a Quartz.ITrigger fires that is associated with the Quartz.IJob.
public abstract Task Execute(IJobExecutionContext context)
Parameters
context
IJobExecutionContextThe execution context.
Returns
Remarks
The implementation may wish to set a result object on the JobExecutionContext before this method exits. The result itself is meaningless to Quartz, but may be informative to Quartz.IJobListeners or Quartz.ITriggerListeners that are watching the job's execution.
Schedule(IScheduler)
public void Schedule(IScheduler scheduler)
Parameters
scheduler
IScheduler