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/HiveOperationContext.cs

    r9444 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.
     
    3333    public static HiveOperationContext Current {
    3434      get {
    35         return OperationContext.Current.Extensions.Find<HiveOperationContext>();
     35        return OperationContext.Current != null
     36          ? OperationContext.Current.Extensions.Find<HiveOperationContext>()
     37          : null;
    3638      }
    3739    }
Note: See TracChangeset for help on using the changeset viewer.