Пример #1
0
        /// <inheritdoc />
        public override void NewIndex(MemoryIndex index)
        {
            // TODO: allocation-abstraction hack
            // see SnapshotBase.CreateObject
            if (indexDefinitions.ContainsKey(index))
            {
                return;
            }

            IIndexDefinition data = Factories.StructuralContainersFactories.IndexDefinitionFactory.CreateIndexDefinition(this);

            indexDefinitions.Add(index, data);
            changeTracker.InsertedIndex(index);
        }
Пример #2
0
        /// <inheritdoc />
        public override void NewIndex(MemoryIndex index)
        {
            CopyIndexDefinition data = new CopyIndexDefinition();

            indexDefinitions.Add(index, data);
        }