Deveel.Data.DatabaseContext.InitStorageSystem C# (CSharp) Méthode

InitStorageSystem() private méthode

private InitStorageSystem ( ) : void
Résultat void
        private void InitStorageSystem()
        {
            try {
                var storageTypeName = Configuration.GetString("database.storageSystem", DefaultStorageSystemNames.Heap);
                if (String.IsNullOrEmpty(storageTypeName))
                    throw new DatabaseConfigurationException("No storage system was configured for this database.");

                StoreSystem = this.ResolveService<IStoreSystem>(storageTypeName);

                if (StoreSystem == null)
                    throw new DatabaseConfigurationException(String.Format("The storage system '{0}' for the database was not set.", storageTypeName));
            } catch(DatabaseConfigurationException) {
                throw;
            } catch (Exception ex) {
                throw new DatabaseConfigurationException("Could not initialize the storage system", ex);
            }
        }