services.AddMyFeature(builder => ...);builder can be used a bit like ASP's registration with the AddAuthorization, AddPolicy, etc.builder.AddSubFeature() (the equivalent of the c.AddPolicy(...) above) to add some more registrations in services.List<Action<IServiceCollection>> on the builder in which builder.AddSubFeature() would add custom registrations.