# 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
  object
  CheckActiveAppointmentsJob

Implements
  IJob

Inherited Members
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

Extension Methods
  NumberUtils.IsNumber(object)
  NumberUtils.ToDouble(object)
  ObjectUtils.ToStr(object?)

## 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