With Roslyn CTP in the public domain, we can try to think about the cool things we can do with it, except for writing C # scripts.
Since asp.net mvc allows you to write custom controller factories, is it possible to write a factory that
- Compiles controllers from the source file on the fly
- Load the newly created type into the runtime (can this runtime descriptor?)
- And discard the previous type if previous requests for the same controller have already been completed.
This will allow us to quickly prototype or change controllers, since you can simply write code and the controller will receive changes without having to recompile.
source
share