コード例 #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);
        }
コード例 #2
0
        public void PopulateContractDeliverableCodeMappings(IEnumerable <string> uncached, CancellationToken cancellationToken)
        {
            var mappings = _fcsRepository.GetContractDeliverableCodeMapping(uncached, cancellationToken);

            PopulateContractDeliverableCodeMappings(mappings);
        }