示例#1
0
文件: BundleContext.cs 项目: yywj/abp
        public void Add(string source, Dictionary <string, string> additionalProperties = null)
        {
            var bundleDefinition = new BundleDefinition
            {
                Source = source,
                AdditionalProperties = additionalProperties
            };

            BundleDefinitions.AddIfNotContains((item) => item.Source == bundleDefinition.Source, () => bundleDefinition);
        }
示例#2
0
        public void Add(string source, bool excludeFromBundle            = false,
                        Dictionary <string, string> additionalProperties = null)
        {
            var bundleDefinition = new BundleDefinition
            {
                Source            = source,
                ExcludeFromBundle = excludeFromBundle
            };

            if (additionalProperties != null)
            {
                bundleDefinition.AdditionalProperties = additionalProperties;
            }

            BundleDefinitions.AddIfNotContains((item) => item.Source == bundleDefinition.Source,
                                               () => bundleDefinition);
        }