Revision 6f03d6e1 trunk/Pithos.Core/Agents/StatusAgent.cs

b/trunk/Pithos.Core/Agents/StatusAgent.cs
55 55
using Castle.ActiveRecord;
56 56
using Castle.ActiveRecord.Framework;
57 57
using Castle.ActiveRecord.Framework.Config;
58
using NHibernate.ByteCode.Castle;
59
using NHibernate.Cfg;
60
using NHibernate.Cfg.Loquacious;
61
using NHibernate.Dialect;
58 62
using Pithos.Interfaces;
59 63
using Pithos.Network;
60 64
using log4net;
65
using Environment = System.Environment;
61 66

  
62 67
namespace Pithos.Core.Agents
63 68
{
......
76 81
        public StatusAgent()
77 82
        {            
78 83
            var appDataPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
79
            
80

  
81 84

  
82 85
            _pithosDataPath = Path.Combine(appDataPath , "GRNET");
83 86
            if (!Directory.Exists(_pithosDataPath))
......
87 90

  
88 91
            MigrateOldDb(dbPath, appDataPath);
89 92

  
93

  
90 94
            var source = GetConfiguration(_pithosDataPath);
91 95
            ActiveRecordStarter.Initialize(source,typeof(FileState),typeof(FileTag));
96
            
92 97
            ActiveRecordStarter.UpdateSchema();
93 98

  
94 99

  

Also available in: Unified diff