public static IList <LocalizableComponentPropertiesValues> GetEntityComponentProperties(Type type, CommercePipelineExecutionContext context) { if (EntityComponentLocalizableProperties.ContainsKey(type)) { return(EntityComponentLocalizableProperties[type]); } lock (LockEntityComponentProperties) { if (EntityComponentLocalizableProperties.ContainsKey(type)) { return(EntityComponentLocalizableProperties[type]); } EntityComponentLocalizableProperties.Add(type, context.GetEntityComponentsLocalizableProperties(type)); return(EntityComponentLocalizableProperties[type]); } }