예제 #1
0
 /// <summary>
 /// 同步
 /// </summary>
 /// <param name="invocation"></param>
 private void PerformSyncUow(IInvocation invocation)
 {
     using (var uow = _admUnitOfWork.Begin()) {
         invocation.Proceed();
         _admUnitOfWork.Complete(uow);
     }
 }
 private void PerformSyncUow(IInvocation invocation)
 {
     Console.WriteLine("同步方法事务开启");
     using (var uow = _admUnitOfWork.Begin()) {
         invocation.Proceed();
         _admUnitOfWork.Complete(uow);
     }
 }