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); }
public static bool IsEnabled(BaseFeature feature) { return(IsEnabled(feature.GetType())); }
public void AddConfigurationError(BaseFeature feature, string error) { Container.ConfigurationErrors.Add(feature.GetType().FullName, error); }