Пример #1
0
            public void InitializeTransactionalStorage(IUuidGenerator uuidGenerator)
            {
                string storageEngineTypeName = configuration.SelectStorageEngineAndFetchTypeName();

                database.TransactionalStorage = configuration.CreateTransactionalStorage(storageEngineTypeName, database.WorkContext.HandleWorkNotifications, () =>
                {
                    if (database.StorageInaccessible != null)
                    {
                        database.StorageInaccessible(database, EventArgs.Empty);
                    }
                });
                database.TransactionalStorage.Initialize(uuidGenerator, database.DocumentCodecs);
            }