public async Task<BillingIndicesResult> SimulateAsync(string SessionKey, Billing[] MatchingBilling, decimal SearchValue) => await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token => { await Task.Delay(TimeSpan.FromMilliseconds(1)); var result = matchingCombinationSolveProcessor.Solve(MatchingBilling, SearchValue); return new BillingIndicesResult { ProcessResult = new ProcessResult { Result = true }, Indices = result, }; }, logger);
public async Task <ActionResult <IEnumerable <int> > > SimulateR(MatchingSimulationSource source) => await hubContext.DoAsync(async token => { await Task.Delay(TimeSpan.FromMilliseconds(0)); return(matchingCombinationSolveProcessor.Solve(source.Billings, source.TargetAmount)); });