Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/17/13 10:51:42 (10 years ago)
Author:
pfleck
Message:

#2030:
Updated license year in headers and AssemblyInfo.
Removed empty regions in OptimizedHiveDao and IOptimizedHiveDao.
The ServiceLocator handles creation of the OptimizedHiveDao different to make the OptimizedHiveDao available for non-service operation calls:

  • if the ServiceLocator is called _within_ a service operation, the same DB-context is used for the whole service operation, and therefore is stored in the service operation context.
  • if the ServiceLocator is called _outside_ a service operation, a new DB-context is created on each ServiceLocator call.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HivePerformance/sources/HeuristicLab.Services.Hive/3.3/OptimizedHiveDao.cs

    r9485 r9634  
    11#region License Information
    22/* HeuristicLab
    3  * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     3 * Copyright (C) 2002-2013 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
    44 *
    55 * This file is part of HeuristicLab.
     
    2828namespace HeuristicLab.Services.Hive.DataAccess {
    2929  public class OptimizedHiveDao : IOptimizedHiveDao {
    30     private static HiveDataContext Db { get { return HiveOperationContext.Current.DataContext; } }
     30    private HiveDataContext Db { get; set; }
     31
     32    public OptimizedHiveDao(HiveDataContext db) {
     33      Db = db;
     34    }
    3135
    3236    #region Task Methods
     
    181185    #endregion
    182186
    183     #region StateLog Methods
    184 
    185     #endregion
    186 
    187     #region Job Methods
    188 
    189     #endregion
    190 
    191     #region JobPermission Methods
    192 
    193     #endregion
    194 
    195187    #region Plugin Methods
    196188    public Plugin GetPluginById(Guid pluginId) {
     
    203195      select p
    204196    );
    205 
    206     #endregion
    207 
    208     #region PluginData Methods
    209 
    210197    #endregion
    211198
     
    249236    #endregion
    250237
    251     #region SlaveGroup Methods
    252 
    253     #endregion
    254 
    255238    #region Resource Methods
    256239    public IEnumerable<Guid> GetAssignedResourceIds(Guid taskId) {
     
    264247    );
    265248    #endregion
    266 
    267     #region ResourcePermission Methods
    268 
    269     #endregion
    270 
    271     #region Authorization Methods
    272 
    273     #endregion
    274 
    275     #region Lifecycle Methods
    276 
    277     #endregion
    278 
    279     #region Downtime Methods
    280     #endregion
    281 
    282     #region Statistics Methods
    283 
    284     #endregion
    285 
    286     #region UserPriority Methods
    287 
    288     #endregion
    289 
    290     #region Helpers
    291 
    292     #endregion
    293249  }
    294250}
Note: See TracChangeset for help on using the changeset viewer.