示例#1
0
        public ConfigurationContext BuildConfigurationContext(BaseFeature feature, IStrategy strategy)
        {
            if (string.IsNullOrWhiteSpace(Key))
            {
                throw new ArgumentException("Missing 'Key' parameter for '" + strategy.GetType().Name + "' strategy for '" + feature.Name + "' feature");
            }

            return(new ConfigurationContext(this));
        }
        public ConfigurationContext BuildConfigurationContext(BaseFeature feature, IStrategy strategy)
        {
            if (string.IsNullOrWhiteSpace(Key))
            {
                throw new ArgumentException("Missing 'Key' parameter for '" + strategy.GetType().Name + "' strategy for '" + feature.Name + "' feature");
            }

            return new ConfigurationContext(this);
        }
示例#3
0
 public static bool IsEnabled(BaseFeature feature)
 {
     return(IsEnabled(feature.GetType()));
 }
示例#4
0
 public void AddConfigurationError(BaseFeature feature, string error)
 {
     Container.ConfigurationErrors.Add(feature.GetType().FullName, error);
 }