Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public void PrePopulateContractDeliverableCodeMappings(IEnumerable <string> deliverableCodes, CancellationToken cancellationToken)
 {
     _cache.PopulateContractDeliverableCodeMappings(deliverableCodes, cancellationToken);
 }