Exemple #1
0
        public AIRegistryPrior AllocatePrior(ExprPriorNode key)
        {
            AIRegistryPrior service = AllocateAIRegistryPrior();

            _priors.Put(key, service);
            return(service);
        }
Exemple #2
0
        public AIRegistryPrior GetOrAllocatePrior(ExprPriorNode key)
        {
            AIRegistryPrior existing = _priors.Get(key);

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