public InterferenceMatrixService(IInterferenceMatrixRepository repository, ICellRepository cellRepository, IInfrastructureRepository infrastructureRepository) { _repository = repository; if (InterferenceMatrixStats == null) InterferenceMatrixStats = new Stack<InterferenceMatrixStat>(); if (PciCellList == null) { var cells = from cell in cellRepository.GetAllList() join moinitor in infrastructureRepository.GetAllPreciseMonitor() on cell.Id equals moinitor.InfrastructureId select cell; PciCellList = cells.MapTo<List<PciCell>>(); } }
public InterferenceMatrixService(IInterferenceMatrixRepository repository, ICellRepository cellRepository, IInfrastructureRepository infrastructureRepository, IInterferenceMongoRepository mongoRepository, ICellStatMysqlRepository statRepository, ICellStasticRepository mongoStatRepository) { _repository = repository; _mongoRepository = mongoRepository; _statRepository = statRepository; _mongoStatRepository = mongoStatRepository; if (InterferenceMatrixStats == null) { InterferenceMatrixStats = new Stack <InterferenceMatrixStat>(); } if (PciCellList == null) { var cells = from cell in cellRepository.GetAllList() join moinitor in infrastructureRepository.GetAllPreciseMonitor() on cell.Id equals moinitor.InfrastructureId select cell; PciCellList = cells.MapTo <List <PciCell> >(); } }