public StaticSensorReadingCreatedNotificationHandler(IPWADispatchHelper pwaDispatchHelper,
                                                      ISensorCacheHelper sensorCacheHelper, IDataContextFactory <DataContext> dataContextFactory)
 {
     _pwaDispatchHelper  = pwaDispatchHelper ?? throw new ArgumentNullException(nameof(pwaDispatchHelper));
     _sensorCacheHelper  = sensorCacheHelper ?? throw new ArgumentNullException(nameof(sensorCacheHelper));
     _dataContextFactory = dataContextFactory ?? throw new ArgumentNullException(nameof(dataContextFactory));
 }
Exemple #2
0
 public EmulationStartedNotificationHandler(IApplicationDatabaseInitializer applicationDatabaseInitializer, IDataContextFactory <DataContext> dataContextFactory, ISensorCacheHelper sensorCacheHelper)
 {
     _applicationDatabaseInitializer = applicationDatabaseInitializer ?? throw new ArgumentNullException(nameof(applicationDatabaseInitializer));
     _dataContextFactory             = dataContextFactory ?? throw new ArgumentNullException(nameof(dataContextFactory));
     _sensorCacheHelper = sensorCacheHelper ?? throw new ArgumentNullException(nameof(sensorCacheHelper));
 }
Exemple #3
0
 public EmulationStoppedNotificationHandler(ISensorCacheHelper sensorCacheHelper, IEmulationDataContextFactory <DataContext> emulationDataContextFactory)
 {
     _sensorCacheHelper           = sensorCacheHelper ?? throw new ArgumentNullException(nameof(sensorCacheHelper));
     _emulationDataContextFactory = emulationDataContextFactory ?? throw new ArgumentNullException(nameof(emulationDataContextFactory));
 }
Exemple #4
0
 public StaticSensorVisibilityStateChangedNotificationHandler(ISensorCacheHelper sensorCacheHelper,
                                                              IDataContextFactory <DataContext> dataContextFactory)
 {
     _sensorCacheHelper  = sensorCacheHelper ?? throw new ArgumentNullException(nameof(sensorCacheHelper));
     _dataContextFactory = dataContextFactory ?? throw new ArgumentNullException(nameof(dataContextFactory));
 }
Exemple #5
0
 public UpdateCacheApplicationInitializedNotificationHandler(IDataContextFactory <DataContext> dataContextFactory,
                                                             ISensorCacheHelper sensorCacheHelper)
 {
     _dataContextFactory = dataContextFactory;
     _sensorCacheHelper  = sensorCacheHelper;
 }
Exemple #6
0
 public SensorDeletedNotificationHandler(ISensorCacheHelper sensorCacheHelper)
 {
     _sensorCacheHelper = sensorCacheHelper ?? throw new ArgumentNullException(nameof(sensorCacheHelper));
 }
Exemple #7
0
 public ReadingsQueries(ISensorCacheHelper sensorCacheHelper, IMapper mapper)
 {
     _sensorCacheHelper = sensorCacheHelper ?? throw new ArgumentNullException(nameof(sensorCacheHelper));
     _mapper            = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }