Esempio n. 1
0
        public static void SetupLogging(Store configStore)
        {
            ConfigurationStore = configStore;

            Instance.LogLevel = GetLogLevel(ConfigurationStore.LoggingLevel.Value);

            Instance.LoggerServices = CreateLoggerServices();
        }
Esempio n. 2
0
        public FileStoreFilesystem(Store configurationStore)
        {
            ConfigurationStore = configurationStore;
            PackagesDirectory = ConfigurationStore.DatabasePackagesDirectory.Value;

            if (PackagesDirectory.EndsWith(Path.DirectorySeparatorChar.ToString()) == false)
                PackagesDirectory = PackagesDirectory + Path.DirectorySeparatorChar;

            if (!Directory.Exists(PackagesDirectory))
                Directory.CreateDirectory(PackagesDirectory);
        }
Esempio n. 3
0
        public Manager()
        {
            _log = LogFactory.Instance.GetLogger(GetType());

            _log.Submit(LogLevel.Info, "Setting up configuration store");

            ConfigurationStore = new Store();

            _log.Submit(LogLevel.Info, "Configuration store setup finished");

            _log.Submit(LogLevel.Info, "Setting up Data Manager");

            DataManager = new DataManager(ConfigurationStore);

            _log.Submit(LogLevel.Info, "Data Manager setup finished");
        }
Esempio n. 4
0
 internal DataManager(Store configurationStore)
 {
     ConfigurationStore = configurationStore;
 }