Esempio n. 1
0
        public IEnumerable <TResult> GetData()
        {
            IWhazzup      whazzupData  = _dataSource.GetIVAOData();
            ISelectedData selectedData = Selector.SelectData(whazzupData);

            selectedData = FilterSelectedData(selectedData);

            IParser parser     = ParserFactory.CreateParser(Selector);
            object  resultData = parser.Parse(selectedData);

            return(GetResult(resultData));
        }
        public override IWhazzup GetIVAOData()
        {
            lock (_locker)
            {
                if (_cache == null || _cache == Whazzup.Null)
                {
                    _cache = _datasource.GetIVAOData();
                }
            }

            return(_cache);
        }