Hi,
We're in a bit of a (real) bind.
We need to demonstrate to stakeholders that Asp.Net Core stack is still a viable platform for this project which MUST loading plugins containing an set of WebAPI and OData Controllers unknown at startup. Due to our lack of success so far everybody is getting jumpy.
Specifically:
- one solution, one project
- with 2 ODataControllers,
- One Convention based EDM model registered during startup, pointing to only one of the two ODataControllers
- such that when invoked (ie way after Build),
- registers a second EDM model that points to the second ODataController.
- proving:
- ODataControllers can be registered late (as if they had just been made available via a plugin)
We have not envisioned yet know how to prove the same with two simple WebAPI (not OData) Controllers -- as they are automatically spotted/found/registered at startup.
For bonus points, if anyone knows any/elegant? way to register Services late (eg: those that came in via the Plugin)...but I think StackOverflow is littered with that question, and no straight forward answers.
Thank you!