I'm trying to get my head around Orchard's multi-tenant architecture.
The thing I can't seem to pinpoint is how the current site is identified. I can see how the shell for each tenant is created, but I guess I'm expecting to see some code that checks the incoming Url to identify the site (tenant) and load the shell in the
It then looks like the OrchardControllerFactory gets the current WorkContext that presumably is scoped for that tenant (and has access to the underlying IoC container)?
Any additional level of detail would be appreciated.