예제 #1
0
        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]);
            }
        }