Table of Contents

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

IAppointmentService

DiagnosisService

public static IDiagnosisService DiagnosisService { get; set; }

Property Value

IDiagnosisService

PatientService

public static IPatientService PatientService { get; set; }

Property Value

IPatientService

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

context IJobExecutionContext

The Quartz scheduler context that provides runtime information for the job execution.

Returns

Task