Table of Contents

Class SchedulerService

Namespace
adas_core.Application.Services
Assembly
adas-core.Application.dll

Provides scheduling functionality as a service to manage and coordinate timed or periodic operations.

public class SchedulerService
Inheritance
SchedulerService
Inherited Members
Extension Methods

Constructors

SchedulerService(IOptions<ApiSettings>, IOptions<List<ProvidersSettings>>, Lazy<IPatientService>, Lazy<ITreatmentService>, Lazy<IAppointmentService>, Lazy<IDiagnosisService>, Lazy<IMedicineService>, Lazy<IObservationService>, Lazy<IConfigObservationService>, ILogger<SchedulerService>, IHttpClientFactory, Lazy<ICalculatedObservationsService>, Lazy<IPatientCarePlanService>)

Initializes a new instance of the SchedulerService class, assigning its dependencies and loading scheduler intervals and activation flags from the supplied application settings.

public SchedulerService(IOptions<ApiSettings> apiSettings, IOptions<List<ProvidersSettings>> providersSettings, Lazy<IPatientService> patientService, Lazy<ITreatmentService> treatmentService, Lazy<IAppointmentService> appointmentService, Lazy<IDiagnosisService> diagnosisService, Lazy<IMedicineService> medicineService, Lazy<IObservationService> observationService, Lazy<IConfigObservationService> configObservationService, ILogger<SchedulerService> logger, IHttpClientFactory httpClientFactory, Lazy<ICalculatedObservationsService> calculatedObservationsService, Lazy<IPatientCarePlanService> patientProcedureService)

Parameters

apiSettings IOptions<ApiSettings>

Application configuration providing scheduler intervals, activation flags, and archival thresholds.

providersSettings IOptions<List<ProvidersSettings>>

Configuration describing the external providers whose observations are retrieved.

patientService Lazy<IPatientService>

Lazy provider of patient data operations.

treatmentService Lazy<ITreatmentService>

Lazy provider of treatment data operations.

appointmentService Lazy<IAppointmentService>

Lazy provider of appointment data operations.

diagnosisService Lazy<IDiagnosisService>

Lazy provider of diagnosis data operations.

medicineService Lazy<IMedicineService>

Lazy provider of medicine data operations.

observationService Lazy<IObservationService>

Lazy provider of observation data operations.

configObservationService Lazy<IConfigObservationService>

Lazy provider of observation configuration operations.

logger ILogger<SchedulerService>

Logger used to record scheduler activity and diagnostics.

httpClientFactory IHttpClientFactory

Factory used to create HTTP clients for provider integrations.

calculatedObservationsService Lazy<ICalculatedObservationsService>

Lazy provider of calculated observations operations.

patientProcedureService Lazy<IPatientCarePlanService>

Lazy provider of patient care plan operations.