source: trunk/sources/HeuristicLab.Hive.Contracts/Interfaces/ITransactionManager.cs @ 948

Last change on this file since 948 was 948, checked in by svonolfe, 12 years ago

Refactored DAL (#372)

File size: 797 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5
6namespace HeuristicLab.Hive.Contracts.Interfaces {
7  /// <summary>
8  /// Transaction manager for the DB access layer
9  /// </summary>
10  public interface ITransactionManager {
11    /// <summary>
12    /// This event is fired when an update occurs
13    /// </summary>
14    event EventHandler OnUpdate;
15
16    /// <summary>
17    /// Enables the auto update of the DB
18    /// </summary>
19    /// <param name="interval"></param>
20    void EnableAutoUpdate(TimeSpan interval);
21
22    /// <summary>
23    /// Disables the auto update of the DB
24    /// </summary>
25    void DisableAutoUpdate();
26
27    /// <summary>
28    /// Update the DB from the cache
29    /// </summary>
30    void UpdateDB();
31  }
32}
Note: See TracBrowser for help on using the repository browser.