I'm trying to write a multi-tenated razor view engine using the razorgenerator.mvc library, where depending on a value specified in the route a different assembly will be used to lookup views.
So far I've converted the constructor to take an IEnumerable<Assembly> and made adjustments in the RazorViewEngine to accomodate this.
I'm up to the PrecompiledViewLocationCache and trying to figure out how I can have it map to multiple assemblies, I'm not quite sure how to get this working as the constructor only accepts one assembly and it seems like after this there isnt enough information
to determine what assemblyname to use in the key.
I'm wondering going even further if this is even possible, is there any other sticking points I might run into?