Esempio n. 1
0
        public void OnNext(T value)
        {
            if (Validator.IsGenericTypeNull(value))
            {
                throw new ArgumentNullException(nameof(value));
            }

            _storage.Add(value);
        }
Esempio n. 2
0
 public void OnNext(T value)
 {
     _storage.Add(value);
 }
 public void Add(T item) => LoggerHelper.RunWithLogging(_logger, () => _innerStorage.Add(item), nameof(Add));
 public void OnNext(IEnergyObservation value)
 {
     _storage.Add(value);
 }
Esempio n. 5
0
        public void OnNext(T value)
        {
            GenericValidator.CheckInitialization(value, nameof(value));

            _dbStorage.Add(value);
        }
 public async Task AddObservationAsync(EnergyObservationModel flashObservation)
 {
     await Task.Run(() => _storage.Add(_mapper.Map <IEnergyObservation>(flashObservation)));
 }