How is multi-tenancy done in the Orchard Project

Viewed 4889

I have been stepping through the source code for Orchard CMS to learn how they have tackled Multi-tenancy.

OrchardProject

Can someone point out the files or areas I should be looking at to understand how the plumbing works for Multi-tenancy in Orchard?

  • How and where is the domain name deciphered to get the tenant from the DB?
  • How is the tenant configuration details maintained throughout the time the user is on the site - sessions?

As a test project, I want to be able to write similar bare-bone code in an ASP.Net MVC application to demonstrate multi-tenancy.

The areas I have looked at:

  • OnBeginRequest
  • Global.cs
  • Stater.cs
3 Answers
Related