Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/07/10 11:19:33 (13 years ago)
Author:
cneumuel
Message:

#1233

  • added test project
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Services.Hive.DataAccess/3.4/TransactionManager.cs

    r4796 r5055  
    66using System.Transactions;
    77using HeuristicLab.Common;
     8using HeuristicLab.Clients.Common;
    89
    910namespace HeuristicLab.Services.Hive.DataAccess {
     
    1213      TransactionScope transaction = new TransactionScope(TransactionScopeOption.Required, new TransactionOptions { IsolationLevel = ApplicationConstants.IsolationLevelScope });
    1314      var disposable = new Disposable<TransactionScope>(transaction);
    14       disposable.Disposing += disposable_Disposing;
     15      disposable.OnDisposing += new EventHandler<EventArgs<object>>(disposable_OnDisposing);
    1516      return disposable;
    1617    }
    1718
    18     void disposable_Disposing(object sender, EventArgs<TransactionScope> scope) {
    19       scope.Value.Complete();
    20       scope.Value.Dispose();
     19    void disposable_OnDisposing(object sender, EventArgs<object> e) {
     20      TransactionScope scope = (TransactionScope)e.Value;
     21      scope.Complete();
     22      scope.Dispose();
    2123    }
    2224  }
Note: See TracChangeset for help on using the changeset viewer.