我TransactionScope
在 C# 中运行了很长时间。我告诉示波器它应该有很长的时间跨度,但我仍然超时。什么可能导致这种情况?
TransactionOptions transactionOptions = new TransactionOptions();
transactionOptions.IsolationLevel = IsolationLevel.ReadCommitted;
transactionOptions.Timeout = TimeSpan.MaxValue;
using (var ts = new TransactionScope(TransactionScopeOption.Required, transactionOptions))
{
DoLongCode();
}