Add setter to TransactionManager.DefaultTimeout and MaxTimeout. (#71703)
authorCarol Wang <v-carwan@microsoft.com>
Tue, 2 Aug 2022 09:12:32 +0000 (17:12 +0800)
committerGitHub <noreply@github.com>
Tue, 2 Aug 2022 09:12:32 +0000 (17:12 +0800)
commit8fc905e02b56b556ce7420a7b9fb2dbc6518d6d4
treeee315dea3680c6f2a1dafd3ebe786d53c5920ca6
parenta413e8786a64e86813989740ddcfaa1271f1aa24
Add setter to TransactionManager.DefaultTimeout and MaxTimeout. (#71703)

* Add setter to TransactionManager.DefaultTimeout and MaxTimeout.
* Address review feedback.
* Interlocked access timespan to avoid data tear on x86 machine.
* Remove redundant Interlocked.Read.
src/libraries/System.Transactions.Local/ref/System.Transactions.Local.cs
src/libraries/System.Transactions.Local/src/System/Transactions/TransactionManager.cs
src/libraries/System.Transactions.Local/tests/System.Transactions.Local.Tests.csproj
src/libraries/System.Transactions.Local/tests/TransactionManagerTest.cs [new file with mode: 0644]