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?
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?
According to David Browne it is 1 minute
TransactionScope’s default constructor defaults the isolation level to Serializable and the timeout to 1 minute
You can find the value like this.
var defaultTimeout= TransactionManager.DefaultTimeout;