Class CheckActiveAppointmentsJob
- Namespace
- adas_core.Application.Services
- Assembly
- adas-core.Application.dll
Represents a scheduled job that checks for active appointments, implemented as an Quartz.IJob.
[DisallowConcurrentExecution]
public class CheckActiveAppointmentsJob : IJob
- Inheritance
-
CheckActiveAppointmentsJob
- Implements
-
IJob
- Inherited Members
- Extension Methods
Remarks
The Quartz.DisallowConcurrentExecutionAttribute attribute prevents multiple instances of this job from running at the same time.
Properties
AppointmentService
public static IAppointmentService AppointmentService { get; set; }
Property Value
DiagnosisService
public static IDiagnosisService DiagnosisService { get; set; }
Property Value
PatientService
public static IPatientService PatientService { get; set; }
Property Value
Methods
Execute(IJobExecutionContext)
Executes the scheduled check active appointments job, logging the start and completion times along with the total elapsed time. Any exception thrown during execution is caught and logged without being rethrown.
public Task Execute(IJobExecutionContext context)
Parameters
contextIJobExecutionContextThe Quartz scheduler context that provides runtime information for the job execution.