System.Transactions Timeout facts

on Tuesday, April 7, 2009

Maximum timeout value: 10 min(default). If your application requires different maxTimeout value then you could configure it in machine.config file which would be applicable to all the applications. maxTimeout can only be specified in machine.config file and it will be applicable to all the apps.

Sample:
<configuration>
<system.transactions>
<machinesettings maxtimeout="00:02:00">
</system.transactions>
</configuration>

Configurable timeout value: 1 min(default). If you want specific timeout value other than 1 minute you could set it in either app.config(application specific) and/or machine.config(machine wide setting) or in code as well.

Sample:
<system.transactions>
<defaultsettings timeout="00:00:59">
</system.transactions>


Note: If the specified defaultSettings timeout value is greater than maxTimeout then maxTimeout value will take precedence.

0 comments: