This project is read-only.

Inject multiple ViewEngines per tenant

Feb 12, 2013 at 3:43 AM
Does anyone know if its possible to inject view engines dynamically as required.

I want to have a setup where I register a view engine for each tenant in my app (each tenant will have their own view dll).

It seems that mvc will only try and resolve the ViewEngine list once via IOC and then it caches that so I cannot switch them out depending on the tenant context of my application.

I'm using Autofac for my IOC along with its multi-tenant support.
Feb 12, 2013 at 6:02 PM
Not sure, but that sounds more like a general MVC view engine question than something specific to RazorGenerator. I'd suggest asking the experts on some MVC specific forum.