Exemplo n.º 1
0
 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);
Exemplo n.º 2
0
 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));
 });