public JournaledSystem(IContext context, IFileSystem fileSystem, string journalPath, bool readOnly, bool enableLogging, int pageSize, IStoreDataFactory dataFactory) { Context = context; FileSystem = fileSystem; JournalPath = journalPath; ReadOnly = readOnly; PageSize = pageSize; DataFactory = dataFactory; EnableLogging = enableLogging; allResources = new Dictionary <string, ResourceBase>(); journalNumber = 0; journalArchives = new List <JournalFile>(); }
internal LoggingBufferManager(IContext context, IFileSystem fileSystem, string journalPath, IStoreDataFactory dataFactory, int pageSize, int maxPages, bool readOnly) { Context = context; pageComparer = new PageComparer(this); JournalPath = journalPath; FileSystem = fileSystem; PageSize = pageSize; MaxPages = maxPages; ReadOnly = readOnly; JournaledSystem = new JournaledSystem(context, FileSystem, JournalPath, ReadOnly, true, PageSize, dataFactory); }