Example #1
0
        public AIRegistryPrevious AllocatePrevious(ExprPreviousNode previousNode)
        {
            AIRegistryPrevious service = AllocateAIRegistryPrevious();

            _previous.Put(previousNode, service);
            return(service);
        }
Example #2
0
        public AIRegistryPrevious GetOrAllocatePrevious(ExprPreviousNode key)
        {
            AIRegistryPrevious existing = _previous.Get(key);

            if (existing != null)
            {
                return(existing);
            }
            return(AllocatePrevious(key));
        }