/// <summary>
        ///     提交交易日志
        /// </summary>
        /// <param name="transactionLog"></param>
        /// <returns></returns>
        public async Task SaveAsync(TransactionLog transactionLog)
        {
            using (var uow = _unitOfWorkManager.Begin(TransactionScopeOption.Suppress))
            {
                await _transactionLogStore.SaveAsync(transactionLog);

                await uow.CompleteAsync();
            }
        }
Example #2
0
 /// <summary>
 ///     保存交易日志
 /// </summary>
 /// <param name="transactionLogStore"></param>
 /// <param name="transactionLog"></param>
 public static void Save(this ITransactionLogStore transactionLogStore, TransactionLog transactionLog)
 {
     AsyncHelper.RunSync(() => transactionLogStore.SaveAsync(transactionLog));
 }