Esempio n. 1
0
        /// <summary>
        /// Get taxon categories for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Taxon categories for specified locale.</returns>
        protected virtual TaxonCategoryList GetTaxonCategories(ILocale locale)
        {
            TaxonCategoryList taxonCategories = null;

            if (TaxonCategories.ContainsKey(locale.ISOCode))
            {
                taxonCategories = (TaxonCategoryList)(TaxonCategories[locale.ISOCode]);
            }
            return(taxonCategories);
        }
Esempio n. 2
0
        /// <summary>
        /// Get taxon categories for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Taxon categories for specified locale.</returns>
        protected override TaxonCategoryList GetTaxonCategories(ILocale locale)
        {
            TaxonCategoryList taxonCategories = null;

            lock (TaxonCategories)
            {
                if (TaxonCategories.ContainsKey(locale.ISOCode))
                {
                    taxonCategories = (TaxonCategoryList)(TaxonCategories[locale.ISOCode]);
                }
            }
            return(taxonCategories);
        }