简体   繁体   English

在单独的应用程序域中具有多租户的ASP.NET MVC 3应用程序?

[英]ASP.NET MVC 3 application with multi-tenancy in separate app domains?

Has anyone have idea how to implement multitenancy in asp mvc 3 application with support for separate app domains and MEF? 有谁知道如何在ASP MVC 3应用程序中实现多租户并支持单独的应用程序域和MEF?

In my application I would like to load assemblies for each tenant to different app domain. 在我的应用程序中,我想将每个租户的程序集加载到不同的应用程序域。 Types are resolved by MEF in proper app domain. 类型由MEF在适当的应用程序域中解析。 Every request needs to be handled in proper tenant specific app domain. 每个请求都需要在适当的租户特定的应用程序域中处理。

Since this is quite tough problem I would appreciate any insights. 由于这是一个非常棘手的问题,我将不胜感激。

IMHO, multi-tenancy is all about the process of having a single code-base for all the tenants [Pure form of multi-tenancy]. 恕我直言,多租户就是为所有租户提供单一代码库的过程[纯租户形式]。

When you will have all the options for a tenant to customize with a single code base and in a single appdomain, where the isolation happens based on the tenant identifier, there is no requirement for a separate app domain / tenant. 当租户可以使用单个代码库和单个应用程序域中的所有选项进行自定义时(其中隔离是根据租户标识符进行的),则不需要单独的应用程序域/租户。

This ensures that each user that gets in to the system will get the data / customization based on the tenant that he belongs to [identified at runtime]. 这样可以确保进入系统的每个用户都可以根据其所属的租户获得数据/自定义(在运行时标识)。

Please explore this view point and post your updates on this approach. 请探索这个观点,并发布有关此方法的更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM