Class GetProvidersObservationsJob
- Namespace
- adas_core.Application.Services
- Assembly
- adas-core.Application.dll
Represents a scheduled job that retrieves observations associated with providers.
[DisallowConcurrentExecution]
public class GetProvidersObservationsJob : IJob
- Inheritance
-
GetProvidersObservationsJob
- Implements
-
IJob
- Inherited Members
- Extension Methods
Remarks
The DisallowConcurrentExecution attribute prevents overlapping executions of this job instance.
Properties
HttpClientFactory
public static IHttpClientFactory HttpClientFactory { get; set; }
Property Value
ObservationService
public static IObservationService ObservationService { get; set; }
Property Value
PatientService
public static IPatientService PatientService { get; set; }
Property Value
Providers
public static List<ProvidersSettings> Providers { get; set; }
Property Value
Methods
Execute(IJobExecutionContext)
Executes the scheduled job that retrieves observations from all configured providers for every patient. Uses reflection to resolve and instantiate each provider type (mapping the assembly name by replacing '-' with '_'), skips providers whose type or required constructor cannot be found, and logs and recovers from any exception raised during processing.
public Task Execute(IJobExecutionContext context)
Parameters
contextIJobExecutionContextThe Quartz job execution context provided by the scheduler when the job is triggered.