Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/11/13 10:15:52 (11 years ago)
Author:
fschoepp
Message:

#1888:

  • Janitor is now working as expected in Windows Azure
  • Added basic support for experiments (draggable experiments)
  • Added methods to save/read experiments from TableStorage
  • The job status can now be retrieved by using the GetTasks/GetTaskData methods
  • Added a class to convert JSON-objects to Algorithm instances
  • Web page: Added experiment button to navigation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OaaS/HeuristicLab.Services.Hive/3.3/HiveDao.cs

    r8326 r9215  
    2828using HeuristicLab.Services.Hive.Interfaces;
    2929using System.Data.Common;
     30using System.Configuration;
    3031
    3132namespace HeuristicLab.Services.Hive.DataAccess {
     
    3435    public HiveDataContext CreateContext(bool longRunning = false) {
    3536      //var context = new HiveDataContext(Settings.Default.HeuristicLab_Hive_LinqConnectionString);
    36       var context = new HiveDataContext(provider.GetOpenConnection(Settings.Default.HiveConnectionStringName));     
     37      HiveDataContext context;
     38      if (ConfigurationManager.ConnectionStrings[Settings.Default.HiveConnectionStringName] == null) {
     39        context = new HiveDataContext(Settings.Default.HeuristicLab_Hive_LinqConnectionString);
     40      }
     41      else {
     42        context = new HiveDataContext(provider.GetOpenConnection(Settings.Default.HiveConnectionStringName));
     43      }
    3744      if (longRunning) context.CommandTimeout = (int)Settings.Default.LongRunningDatabaseCommandTimeout.TotalSeconds;
    3845      return context;
Note: See TracChangeset for help on using the changeset viewer.