/// <summary> /// Initializes a new instance of the <see cref="ConfigurationFilterBase"/> class. /// </summary> /// <param name="generatorInput">The input for the generator.</param> protected ConfigurationFilterBase(ConfigurationGeneratorInput generatorInput) { GeneratorInput = generatorInput ?? throw new ArgumentNullException(nameof(generatorInput)); // Find the type Type = FindTypeFromClassName(); }
/// <summary> /// Initializes a new instance of the <see cref="GenerationSettings"/> class. /// </summary> /// <param name="configurationFilterType">The type of configuration filter to be used.</param> public GenerationSettings(ConfigurationFilterType configurationFilterType) { ConfigurationFilterType = configurationFilterType; }
/// <summary> /// Gets an instance of the generator. /// </summary> /// <param name="filterType">The type of configuration filter to be used</param> private static IConfigurationGenerator GetGenerator(ConfigurationFilterType filterType) => NinjectUtilities.CreateKernel().AddConfigurationGenerator(new GenerationSettings(filterType)).Get <IConfigurationGenerator>();