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); }
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); }