public static IServiceCollection ConfigureServices(IGenerationStartup source, IServiceCollection collection) { var featureProvider = new GeneratorFeaturesProvider(collection); source.ConfigureFeatures(featureProvider); return(featureProvider._services); }
public static IServiceCollection AddFeatureProvider(this IServiceCollection collection, IGenerationStartup startup) => GeneratorFeaturesProvider.ConfigureServices(startup, collection);