问题
When i create a TransactionScope object as followed:
using (TransactionScope ts = new TransactionScope())
{
// Do stuff...
}
What is the default transaction timeout of the given ts object?
回答1:
According to David Browne it is 1 minute
TransactionScope’s default constructor defaults the isolation level to Serializable and the timeout to 1 minute
using new TransactionScope() Considered Harmful
来源:https://stackoverflow.com/questions/20224748/what-is-transactionscope-default-timeout-value