public static FeatureSupport GetSupport(SqlEngineVersion version, string name) { if (_features.ContainsKey(name) && _features[name].Support.ContainsKey(version)) { return(_features[name].Support[version]); } return(new FeatureSupport(Support.Unknown, null)); }
private void LoadFeatureList() { if (FeatureList.Count == 0) { var section = (FeatureListConfigHandler)ConfigurationManager.GetSection("FeatureList"); if (section != null) { foreach (FeatureElement featureItem in section.FeatureItems) { if (!FeatureList.ContainsKey(featureItem.Name)) { FeatureList.Add(featureItem.Name, featureItem.IsEnabled); } } } } }