Пример #1
0
        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));
        }
Пример #2
0
 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);
                 }
             }
         }
     }
 }