public IEnumerable <FcsDeliverableCodeMapping> GetContractDeliverableCodeMapping( IEnumerable <string> deliverableCodes, CancellationToken cancellationToken) { var deliverableCodeMappings = _referenceDataCache.GetContractDeliverableCodeMapping(deliverableCodes, cancellationToken); if (!deliverableCodeMappings.Any()) { deliverableCodeMappings = _fcsRepository.GetContractDeliverableCodeMapping(deliverableCodes, cancellationToken); _referenceDataCache.PopulateContractDeliverableCodeMappings(deliverableCodeMappings); } return(deliverableCodeMappings); }
public void PrePopulateContractDeliverableCodeMappings(IEnumerable <string> deliverableCodes, CancellationToken cancellationToken) { _cache.PopulateContractDeliverableCodeMappings(deliverableCodes, cancellationToken); }