/// <summary> /// Get picture relation data types for specified locale. /// </summary> /// <param name="locale">The locale.</param> /// <returns>Picture relation data types for specified locale.</returns> protected virtual PictureRelationDataTypeList GetPictureRelationDataTypes(ILocale locale) { PictureRelationDataTypeList pictureRelationDataTypes = null; if (PictureRelationDataTypes.ContainsKey(locale.ISOCode)) { pictureRelationDataTypes = (PictureRelationDataTypeList)(PictureRelationDataTypes[locale.ISOCode]); } return(pictureRelationDataTypes); }
/// <summary> /// Refresh cached data. /// </summary> /// <param name="userContext">User context.</param> protected override void RefreshCache(IUserContext userContext) { lock (PictureRelationDataTypes) { PictureRelationDataTypes.Clear(); } lock (PictureRelationTypes) { PictureRelationTypes.Clear(); } }
/// <summary> /// Get picture relation data types for specified locale. /// </summary> /// <param name="locale">The locale.</param> /// <returns>Picture relation data types for specified locale.</returns> protected override PictureRelationDataTypeList GetPictureRelationDataTypes(ILocale locale) { PictureRelationDataTypeList pictureRelationDataTypes = null; lock (PictureRelationDataTypes) { if (PictureRelationDataTypes.ContainsKey(locale.ISOCode)) { pictureRelationDataTypes = (PictureRelationDataTypeList)(PictureRelationDataTypes[locale.ISOCode]); } } return(pictureRelationDataTypes); }
/// <summary> /// Refresh cached data. /// </summary> /// <param name="userContext">User context.</param> protected virtual void RefreshCache(IUserContext userContext) { PictureRelationDataTypes.Clear(); PictureRelationTypes.Clear(); }