Exemplo n.º 1
0
        public IEnumerable <ENodebView> QueryCollegeENodebs(string collegeName,
                                                            DateTime begin, DateTime end)
        {
            var ids = _repository.GetENodebIds(collegeName);

            return((from id in ids
                    select _eNodebRepository.Get(id)
                    into eNodeb
                    where eNodeb != null
                    let stats = _alarmRepository.GetAllList(begin, end, eNodeb.ENodebId)
                                select ENodebView.ConstructView(eNodeb, stats)).ToList());
        }
Exemplo n.º 2
0
        public IEnumerable <Tuple <string, IEnumerable <AlarmStat> > > QueryCollegeENodebAlarms(string collegeName,
                                                                                                DateTime begin, DateTime end)
        {
            var ids = _infrastructureRepository.GetCollegeInfrastructureIds(collegeName, InfrastructureType.ENodeb);

            return((from id in ids
                    select _eNodebRepository.Get(id)
                    into eNodeb
                    where eNodeb != null
                    let stats = _alarmRepository.GetAllList(begin, end, eNodeb.ENodebId)
                                select new Tuple <string, IEnumerable <AlarmStat> >(eNodeb.Name, stats)).ToList());
        }