コード例 #1
0
        /// <summary>
        /// Get lump split event types for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Lump split event types for specified locale.</returns>
        protected virtual LumpSplitEventTypeList GetLumpSplitEventTypes(ILocale locale)
        {
            LumpSplitEventTypeList lumpSplitEventTypes = null;

            if (LumpSplitEventTypes.ContainsKey(locale.ISOCode))
            {
                lumpSplitEventTypes = (LumpSplitEventTypeList)(LumpSplitEventTypes[locale.ISOCode]);
            }
            return(lumpSplitEventTypes);
        }
コード例 #2
0
 /// <summary>
 /// Refresh cached data.
 /// </summary>
 /// <param name="userContext">User context.</param>
 protected override void RefreshCache(IUserContext userContext)
 {
     lock (LumpSplitEventTypes)
     {
         LumpSplitEventTypes.Clear();
     }
     lock (Taxa)
     {
         Taxa.Clear();
     }
     lock (TaxonAlertStatuses)
     {
         TaxonAlertStatuses.Clear();
     }
     lock (TaxonCategories)
     {
         TaxonCategories.Clear();
     }
     lock (TaxonChangeStatuses)
     {
         TaxonChangeStatuses.Clear();
     }
     lock (TaxonChildQualityStatistics)
     {
         TaxonChildQualityStatistics.Clear();
     }
     lock (TaxonNameCategories)
     {
         TaxonNameCategories.Clear();
     }
     lock (TaxonNameCategoryTypes)
     {
         TaxonNameCategoryTypes.Clear();
     }
     lock (TaxonNames)
     {
         TaxonNames.Clear();
     }
     lock (TaxonNameStatuses)
     {
         TaxonNameStatuses.Clear();
     }
     lock (TaxonNameUsages)
     {
         TaxonNameUsages.Clear();
     }
     lock (TaxonRevisionEventTypes)
     {
         TaxonRevisionEventTypes.Clear();
     }
     lock (TaxonRevisionStates)
     {
         TaxonRevisionStates.Clear();
     }
 }
コード例 #3
0
        /// <summary>
        /// Get lump split event types for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Lump split event types for specified locale.</returns>
        protected override LumpSplitEventTypeList GetLumpSplitEventTypes(ILocale locale)
        {
            LumpSplitEventTypeList lumpSplitEventTypes = null;

            lock (LumpSplitEventTypes)
            {
                if (LumpSplitEventTypes.ContainsKey(locale.ISOCode))
                {
                    lumpSplitEventTypes = (LumpSplitEventTypeList)(LumpSplitEventTypes[locale.ISOCode]);
                }
            }
            return(lumpSplitEventTypes);
        }
コード例 #4
0
 /// <summary>
 /// Refresh cached data.
 /// </summary>
 /// <param name="userContext">User context.</param>
 protected virtual void RefreshCache(IUserContext userContext)
 {
     LumpSplitEventTypes.Clear();
     Taxa.Clear();
     TaxonAlertStatuses.Clear();
     TaxonCategories.Clear();
     TaxonChangeStatuses.Clear();
     TaxonChildQualityStatistics.Clear();
     TaxonNameCategories.Clear();
     TaxonNameCategoryTypes.Clear();
     TaxonNames.Clear();
     TaxonNameStatuses.Clear();
     TaxonNameUsages.Clear();
     TaxonRevisionEventTypes.Clear();
     TaxonRevisionStates.Clear();
 }