示例#1
0
        private void Init()
        {
            var databaseFolder = _process.Configuration.DatabaseFolder;

            _schema        = new SchemaFile(databaseFolder, _process.Configuration.SchemaFileExtension, _databaseName, _databaseId);
            _data          = new DbDataFile(_process.Configuration.FrostBinaryDataExtension, databaseFolder, _databaseName, _process.Configuration.FrostBinaryDataExtension);
            _dataDirectory = new DbDataDirectoryFile(_data, databaseFolder, _databaseName, _process.Configuration.FrostBinaryDataDirectoryExtension);
            _participants  = new ParticipantFile(_process.Configuration.ParticipantFileExtension, databaseFolder, _databaseName);
            _security      = new DbSecurityFile(_process.Configuration.FrostSecurityFileExtension, databaseFolder, _databaseName);
            _contractFile  = new DbContractFile(_process.Configuration.ContractExtension, databaseFolder, _databaseName);
            _indexFile     = new DbDataIndexFile(_process.Configuration.FrostDbIndexFileExtension, databaseFolder, _databaseName);
            _xactFile      = new DbXactFile(databaseFolder, _process.Configuration.FrostDbXactFileExtension, _databaseName);
        }
示例#2
0
        /// <summary>
        /// Loads the participant file from disk
        /// </summary>
        private void LoadParticpantFile()
        {
            var extension = _process.Configuration.ParticipantFileExtension;

            _participants = new ParticipantFile(extension, _databaseFolderPath, _databaseName);
        }