private List <FundingActorDto> GetFundingModelPages(IEnumerable <int> filter, IJobContextMessage jobContextMessage, string externalDataCache, string internalDataCache, string fileDataCache) { return(_learnerPagingService .BuildPages(filter) .Select(p => new FundingActorDto { JobId = jobContextMessage.JobId, ExternalDataCache = externalDataCache, InternalDataCache = internalDataCache, FileDataCache = fileDataCache, ValidLearners = _jsonSerializationService.Serialize(p) }).ToList()); }
public void ExecuteTasks(IMessage message) { // Build Persistance Dictionary BuildKeyValueDictionary(message); _populationService.PopulateAsync(CancellationToken.None).Wait(); // pre funding var learnersToProcess = _learnerPerActorService.BuildPages(new List <int> { 35 }); // process funding var fundingOutputs = ProcessFunding(learnersToProcess); // persist var serializedOutputs = _jsonSerializationService.Serialize(fundingOutputs); System.IO.File.WriteAllText(@"C:\Code\temp\FM35FundingService\Json_Output.json", serializedOutputs); }