So the problem with the model builders was the order of registration. The delegate passed to UseRestier is executed after registration of the core Restier services, but before registration of the "default" services for a specific API.
To register your chaining service after registration of the default services, you have to call
services.AddRestierDefaultServices<TrippinApi>();
before registration of your chaining service. This way all default services are already in the container and you can chain on top of them. We will have to put this info in the docs.
So the problem with the model builders was the order of registration. The delegate passed to UseRestier is executed after registration of the core Restier services, but before registration of the "default" services for a specific API.
To register your chaining service after registration of the default services, you have to call
before registration of your chaining service. This way all default services are already in the container and you can chain on top of them. We will have to put this info in the docs.