OData / ODataSamples

Samples: For ODataLib, OData Web API, RESTier, etc.
http://odata.github.io/
Other
293 stars 222 forks source link

Updated to new restier RC. Fixed registration order of Model builders. #121

Closed jspuij closed 4 years ago

jspuij commented 4 years ago

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.

mikepizzo commented 4 years ago

Thanks for the update @jspuij!