I am currently working on an enterprise web application that uses WCF to implement a REST API. It utilizes a VirtualPathProvider to catch requests to *.svc files (which don't actually exist), and then builds them on the fly to dynamically load the associated WCF services. This allows the system to have "modules" that can be added to the application at runtime without impacting the web server or anyone using it.
What I would like to know, is if the same is conceptually possible with Web API 2. I've been doing some research, but it looks like the routes can only be configured at startup... What I was hoping for is a means to handle for non-existent routes, and basically use the controller name from the request to look-up and load the associated assembly (if it exists) while programmatically adding a new route to it.
I've just started with Web API 2 so I was hoping for some more experienced users to chime in. Basically my team is interested in switching to Web API 2 to reduce the overhead and complexity we've encountered with WCF, but this particular requirement could be a deal breaker.