// TODO: Instead of performing each TearDown request synchronously, create a queue // for a background thread to process. This background thread can remove PropBags in batches. // If done in batches, ranges of Ids can be removed from the Store and StoreByType dictionaries. public bool TearDown(BagNode propBagNode) { //WeakRefKey<IPropBag> propBag_wrKey = propBagNode.PropBagProxy; if (TryRemoveBagNode(propBagNode)) { propBagNode.Dispose(); return(true); } else { return(false); } }