How to determine transaction timeout during application debugging

I am testing whether the option from app.config below is enabled for all transactions in the application.

<system.transactions>
   <defaultSettings timeout="00:05:00" />
</system.transactions>

A transaction is defined using the transaction scope as follows

using (TransactionScope transactionScope = new TransactionScope(TransactionScopeOption.Required))

Can I find out what timeout a transaction generated by a transaction scope has?

+3
source share

Source: https://habr.com/ru/post/1716772/


All Articles