示例#1
0
 public virtual ulong Save(ulong transactionId, BrightstarProfiler profiler)
 {
     using (profiler.Step("BPlusTree.Save"))
     {
         _isDirty = false;
         _nodeCache.Clear();
         return(RootId);
     }
 }
示例#2
0
        public void NodeCache_LoadUaDefinedTypes()
        {
            INodeCache nodeCache = Session.NodeCache;

            Assert.IsNotNull(nodeCache);

            // clear node cache
            nodeCache.Clear();

            // load the predefined types
            nodeCache.LoadUaDefinedTypes(Session.SystemContext);

            // reload the predefined types
            nodeCache.LoadUaDefinedTypes(Session.SystemContext);
        }