Ejemplo n.º 1
0
        public AppointmentController(AppointmentContext context, IOptionsSnapshot <AppointmentSettings> settings, IAppointmentIntegrationEventService appointmentIntegrationEventService)
        {
            _appointmentContext = context ?? throw new ArgumentNullException(nameof(context));
            _appointmentIntegrationEventService = appointmentIntegrationEventService ?? throw new ArgumentNullException(nameof(appointmentIntegrationEventService));
            _settings = settings.Value;

            context.ChangeTracker.QueryTrackingBehavior = QueryTrackingBehavior.NoTracking;
        }
Ejemplo n.º 2
0
 public AppointmentReasonCodeChangedToAwaitingValidationIntegrationEventHandler(
     AppointmentContext appointmentContext,
     IAppointmentIntegrationEventService appointmentIntegrationEventService,
     ILogger <AppointmentReasonCodeChangedToAwaitingValidationIntegrationEventHandler> logger)
 {
     _appointmentContext = appointmentContext;
     _appointmentIntegrationEventService = appointmentIntegrationEventService;
     _logger = logger ?? throw new System.ArgumentNullException(nameof(logger));
 }