Ejemplo n.º 1
0
        public void Load()
        {
            _rates        = _memoryService.LoadCollection <CurrencyRate>(_fileName);
            _lastUpdate   = _memoryService.LoadValue <DateTime>(_lastUpdateKey);
            _lastCurrency = _memoryService.LoadValue <string>(_lastCurrencyKey);

            OnLoaded();
        }
Ejemplo n.º 2
0
        public void Load()
        {
            Collection = _memoryService.LoadCollection <T>(FileName);

            if (Collection.Any())
            {
                _index = Collection.OrderBy(x => x.Id).Last().Id;
            }
        }