public async Task <int> CancelAsync(JournalizingOption option, CancellationToken token = default(CancellationToken))
        {
            var count = 0;

            using (var scope = transactionScopeBuilder.Create())
            {
                option.UpdateAt = await dbSystemDateTimeQueryProcessor.GetAsync(token);

                count += await updateMatchingJournalizingQueryProcessor.CancelAsync(option, token);

                count += await updateReceiptMatchingJournalizingQueryProcessor.CancelAsync(option, token);

                count += await updateAdvanceReceivedBackupJournaliginzQueryProcessor.CancelAsync(option, token);

                count += await updateReceiptExcludeJournalizingQueryProcessor.CancelAsync(option, token);

                scope.Complete();
            }
            return(count);
        }
示例#2
0
        public async Task <int> CancelAsync(JournalizingOption option, CancellationToken token = default(CancellationToken))
        {
            option.UpdateAt = await dbSystemDateTimeQueryProcessor.GetAsync(token);

            return(await updateMatchingJournalizingQueryProcessor.CancelAsync(option, token));
        }