- Timestamp:
- 04/16/13 13:13:41 (11 years ago)
- Location:
- branches/OaaS
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OaaS
- Property svn:ignore
-
old new 21 21 protoc.exe 22 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll 23 24 packages
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/OaaS/HeuristicLab.Services.Hive.DataAccess
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/trunk/sources/HeuristicLab.Services.Hive.DataAccess merged eligible /branches/Algorithms.GradientDescent/HeuristicLab.Services.Hive.DataAccess 5516-5520 /branches/Benchmarking/sources/HeuristicLab.Services.Hive.DataAccess 6917-7005 /branches/CloningRefactoring/HeuristicLab.Services.Hive.DataAccess 4656-4721 /branches/DataAnalysis Refactoring/HeuristicLab.Services.Hive.DataAccess 5471-5808 /branches/DataAnalysis SolutionEnsembles/HeuristicLab.Services.Hive.DataAccess 5815-6180 /branches/DataAnalysis/HeuristicLab.Services.Hive.DataAccess 4458-4459,4462,4464 /branches/GP.Grammar.Editor/HeuristicLab.Services.Hive.DataAccess 6284-6795 /branches/GP.Symbols (TimeLag, Diff, Integral)/HeuristicLab.Services.Hive.DataAccess 5060 /branches/HiveTaskScheduler/HeuristicLab.Services.Hive.DataAccess 8687-9106 /branches/NET40/sources/HeuristicLab.Services.Hive.DataAccess 5138-5162 /branches/ParallelEngine/HeuristicLab.Services.Hive.DataAccess 5175-5192 /branches/ProblemInstancesRegressionAndClassification/HeuristicLab.Services.Hive.DataAccess 7568-7810 /branches/QAPAlgorithms/HeuristicLab.Services.Hive.DataAccess 6350-6627 /branches/Restructure trunk solution/HeuristicLab.Services.Hive.DataAccess 6828 /branches/RuntimeOptimizer/HeuristicLab.Services.Hive.DataAccess 8943-9078 /branches/ScatterSearch (trunk integration)/HeuristicLab.Services.Hive.DataAccess 7787-8333 /branches/SlaveShutdown/HeuristicLab.Services.Hive.DataAccess 8944-8956 /branches/SuccessProgressAnalysis/HeuristicLab.Services.Hive.DataAccess 5370-5682 /branches/Trunk/HeuristicLab.Services.Hive.DataAccess 6829-6865 /branches/UnloadJobs/HeuristicLab.Services.Hive.DataAccess 9168-9215 /branches/VNS/HeuristicLab.Services.Hive.DataAccess 5594-5752 /branches/histogram/HeuristicLab.Services.Hive.DataAccess 5959-6341
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
branches/OaaS/HeuristicLab.Services.Hive.DataAccess/3.3/TransactionManager.cs
r8326 r9363 25 25 namespace HeuristicLab.Services.Hive.DataAccess { 26 26 public class TransactionManager : ITransactionManager { 27 public void UseTransaction(Action call, bool serializable= false, bool longRunning = false) {27 public void UseTransaction(Action call, bool repeatableRead = false, bool longRunning = false) { 28 28 int n = 10; 29 29 while (n > 0) { 30 TransactionScope transaction = CreateTransaction( serializable, longRunning);30 TransactionScope transaction = CreateTransaction(repeatableRead, longRunning); 31 31 try { 32 32 call(); … … 45 45 } 46 46 47 public T UseTransaction<T>(Func<T> call, bool serializable= false, bool longRunning = false) {47 public T UseTransaction<T>(Func<T> call, bool repeatableRead = false, bool longRunning = false) { 48 48 int n = 10; 49 49 while (n > 0) { 50 TransactionScope transaction = CreateTransaction( serializable, longRunning);50 TransactionScope transaction = CreateTransaction(repeatableRead, longRunning); 51 51 try { 52 52 T result = call(); … … 67 67 } 68 68 69 private TransactionScope CreateTransaction(bool serializable, bool longRunning) {69 private TransactionScope CreateTransaction(bool repeatableRead, bool longRunning) { 70 70 var options = new TransactionOptions(); 71 if ( serializable)72 options.IsolationLevel = IsolationLevel. Serializable;71 if (repeatableRead) 72 options.IsolationLevel = IsolationLevel.RepeatableRead; 73 73 else 74 74 options.IsolationLevel = IsolationLevel.ReadUncommitted;
Note: See TracChangeset
for help on using the changeset viewer.