时不时出现异常信息:[【Exception】:The transaction operation cannot be performed because there are pending requests working on this transaction.] #1236
km93522719
started this conversation in
General
Replies: 1 comment 1 reply
-
检查一下异步,是不是没有 await |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
using IUnitOfWork unitOfWork = _unitOfWorkManager.Begin(isolationLevel: IsolationLevel.Snapshot);
try
{
//业务相关的代码
...
unitOfWork.Commit();
}
catch (Exception e)
{
unitOfWork.Rollback();
throw new CustomException(ExceptionConst.FlowSubmitFail);
}
时不时出现异常信息:[【Exception】:The transaction operation cannot be performed because there are pending requests working on this transaction.]
Beta Was this translation helpful? Give feedback.
All reactions