Exemplo n.º 1
0
        /// <summary>
        /// Get taxon revision event types for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Taxon revision event types for specified locale.</returns>
        protected virtual TaxonRevisionEventTypeList GetTaxonRevisionEventTypes(ILocale locale)
        {
            TaxonRevisionEventTypeList taxonRevisionEventTypes = null;

            if (TaxonRevisionEventTypes.ContainsKey(locale.ISOCode))
            {
                taxonRevisionEventTypes = (TaxonRevisionEventTypeList)(TaxonRevisionEventTypes[locale.ISOCode]);
            }
            return(taxonRevisionEventTypes);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Get taxon revision event types for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Taxon revision event types for specified locale.</returns>
        protected override TaxonRevisionEventTypeList GetTaxonRevisionEventTypes(ILocale locale)
        {
            TaxonRevisionEventTypeList taxonRevisionEventTypes = null;

            lock (TaxonRevisionEventTypes)
            {
                if (TaxonRevisionEventTypes.ContainsKey(locale.ISOCode))
                {
                    taxonRevisionEventTypes = (TaxonRevisionEventTypeList)(TaxonRevisionEventTypes[locale.ISOCode]);
                }
            }
            return(taxonRevisionEventTypes);
        }