Ejemplo n.º 1
0
 public async Task <CountResult> CancelAsync(string SessionKey, long[] AccountTransferLogIds, int LoginUserId)
 {
     return(await authorizationProcessor.DoAuthorizeAsync(SessionKey, async token =>
     {
         var result = await accounttransferProcessor.CancelAsync(
             AccountTransferLogIds.Select(x => new AccountTransferLog {
             Id = x,
             CreateBy = LoginUserId,
         }).ToArray(), token);
         return new CountResult
         {
             ProcessResult = new ProcessResult {
                 Result = true
             },
             Count = result,
         };
     }, logger));
 }
Ejemplo n.º 2
0
 public async Task <int> Cancel(IEnumerable <AccountTransferLog> logs, CancellationToken token)
 => await accounttransferProcessor.CancelAsync(logs, token);