Ejemplo n.º 1
0
        protected override async ValueTask <LoanApplication> Invoke(LoanInquiry input, ChainContext context)
        {
            var creditReport = await _creditService.GetCreditReportAsync(input.Ssn, context.CancellationToken);

            return(new LoanApplication(
                       input.Ssn,
                       input.Name,
                       input.Amount,
                       input.LoanDuration,
                       creditReport.CreditScore));
        }