I'd like to bundle a controller along with everything it needs to function into a DLL. It should --
- Provide a controller
- Automatically register a route for that controller
- Provide a view for that controller to use
I want this to be as "hands-free" as possible -- if the DLL is present, the new route is available which is mapped to the controller and returns the view. If the DLL is gone, none of this happens.
I can't be the first person to need this, so I'm curious if there are accepted/common patterns for doing it.