Example #1
0
        internal virtual void UnRegisterKey(object key,
                                            Int64 address,
                                            Session session,
                                            RecordManager recordManager,
                                            string indexName)
        {
            var index = new RecordIndex <ValueWithAddressIndexKey <TAttribute> >(
                this.Session,
                this.RecordManager,
                indexName,
                this.Session.SerializerResolver.SerializerFor <Node <ValueWithAddressIndexKey <TAttribute> > >()
                );

            index.UnRegister((ValueWithAddressIndexKey <TAttribute>)key);
        }
Example #2
0
        internal override void UnRegisterKey(object key,
                                             Int64 address,
                                             Session session,
                                             RecordManager recordManager,
                                             string indexName)
        {
            var index = new RecordIndex <TID>(
                this.Session,
                recordManager,
                indexName,
                this.Session.SerializerResolver.SerializerFor <Node <TID> >()
                );

            index.UnRegister((TID)key);
        }
Example #3
0
 public void UnRegister_Deletes_Original_Value()
 {
     _mockTree.Insert(1, 2);
     _index.UnRegister(1);
     Assert.AreEqual(1, _mockTree.Deleted[0]);
 }