/// <summary> /// Creates an <see cref="InputConfiguration"/>. /// </summary> /// <param name="assemblyFiles">Names of the assembly files that should be transpiled.</param> /// <param name="typeFilters">Filters that should be used to determine which types should be transpiled.</param> /// <exception cref="ConfigurationException">Thrown when <paramref name="assemblyFiles"/> is null or empty.</exception> public InputConfiguration(IEnumerable <string> assemblyFiles, IEnumerable <TypeFilterConfigurationAdapter> typeFilters = null) { if (assemblyFiles == null || !assemblyFiles.Any()) { throw new ConfigurationException("At least one assembly file must be specified in the input section of the configuration."); } AssemblyFiles = assemblyFiles.ToList(); TypeFilter = typeFilters != null?CompositeFilter.Or(typeFilters) : ConstantFilter.MatchAll <Type>(); }
/// <summary> /// Servers not matching the given filter /// </summary> public static NotFilter Not(ConstantFilter filter) => new NotFilter(filter);
public NotFilter(ConstantFilter filter) { Filter = filter; }