/// <summary> /// Get factor origins for specified locale. /// </summary> /// <param name="locale">Currently used locale.</param> /// <returns>Factor origins for specified locale.</returns> protected virtual FactorOriginList GetFactorOrigins(ILocale locale) { FactorOriginList factorOrigins = null; if (FactorOrigins.ContainsKey(locale.ISOCode)) { factorOrigins = (FactorOriginList)(FactorOrigins[locale.ISOCode]); } return(factorOrigins); }
/// <summary> /// Get factor origins for specified locale. /// </summary> /// <param name="locale">Locale.</param> /// <returns>Factor origins for specified locale.</returns> protected override FactorOriginList GetFactorOrigins(ILocale locale) { FactorOriginList factorOrigins = null; lock (FactorOrigins) { if (FactorOrigins.ContainsKey(locale.ISOCode)) { factorOrigins = (FactorOriginList)(FactorOrigins[locale.ISOCode]); } } return(factorOrigins); }