Exemplo n.º 1
0
        public static IList <LocalizablePropertyValues> GetEntityProperties(Type type, CommercePipelineExecutionContext context)
        {
            if (EntityLocalizableProperties.ContainsKey(type))
            {
                return(EntityLocalizableProperties[type]);
            }

            lock (LockEntityProperties)
            {
                if (EntityLocalizableProperties.ContainsKey(type))
                {
                    return(EntityLocalizableProperties[type]);
                }

                EntityLocalizableProperties.Add(type, context.GetEntityLocalizableProperties(type));
                return(EntityLocalizableProperties[type]);
            }
        }