Class ReceiverService
- Namespace
- adas_core.Infrastructure.Services
- Assembly
- adas-core.Infrastructure.dll
Provides functionality for receiving and processing incoming data, messages, or requests.
public class ReceiverService
- Inheritance
-
ReceiverService
- Inherited Members
- Extension Methods
Constructors
ReceiverService(IObservationService, ITreatmentService, IPatientService, IPumpService, IRecordingAlertService, IRecordingService, IAppointmentService, IAlarmService, IOptions<RabbitMqSettings>, ILogger<ReceiverService>)
public ReceiverService(IObservationService observationService, ITreatmentService treatmentService, IPatientService patientsService, IPumpService pumpService, IRecordingAlertService recordingAlertService, IRecordingService recordingService, IAppointmentService appointmentService, IAlarmService alarmService, IOptions<RabbitMqSettings> settings, ILogger<ReceiverService> logger)
Parameters
observationServiceIObservationServicetreatmentServiceITreatmentServicepatientsServiceIPatientServicepumpServiceIPumpServicerecordingAlertServiceIRecordingAlertServicerecordingServiceIRecordingServiceappointmentServiceIAppointmentServicealarmServiceIAlarmServicesettingsIOptions<RabbitMqSettings>loggerILogger<ReceiverService>
Methods
ProcessErrorQueue(string)
Asynchronously reprocesses messages from the specified error queue by deriving the target queue name from the routing key (with "Key" removed), resolving the associated service, and resubmitting the message. Operations are skipped when the bus is uninitialized, the derived queue name is empty, or no service is resolved.
public Task ProcessErrorQueue(string errorQueueName)
Parameters
errorQueueNamestringThe name of the error queue from which to reprocess messages.