Multi Site Tenancy and Named Containers

Dec 2, 2008 at 10:51 PM
I have a web site that requires different theming/database connection strings/objects, etc for different users. I was thinking of using Named Containers to deliniate the configuration for each site. What I'd like to know is - rather than writing a wrapper around Unity to handle selecting the container name (using an other module to look at the URL) can I simply extend Unity itself with a custom locator (i.e., can you automagically set the container name for a Resolve operation)?
Dec 3, 2008 at 7:01 PM
There's nothing like this out of the box. First off, containers don't have names. A particular set of configuration information may have a name in the config file, but that's a very different thing.

I'm afraid you'll need to build this one yourself.