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