Browse Source

Added comments

pull/191/head
Halil İbrahim Kalkan 9 years ago
parent
commit
e2e89d6733
  1. 28
      src/AbpDesk/AbpDesk.ConsoleDemo/appsettings.json
  2. 6
      src/Volo.Abp.MultiTenancy.Abstractions/Volo/Abp/MultiTenancy/TenantScopeProvider.cs

28
src/AbpDesk/AbpDesk.ConsoleDemo/appsettings.json

@ -8,30 +8,18 @@
{
"Id": "2D8BF07D-50F4-4A70-805E-C7618F008043",
"Name": "Acme",
"ConnectionStrings": [
{
"Name": "Default",
"Value": "..."
},
{
"Name": "AbpDeskMongoBlog",
"Value": "..."
}
]
"ConnectionStrings": {
"Default": "...",
"AbpDeskMongoBlog": "..."
}
},
{
"Id": "33A01BA1-4106-41DA-AF34-28028FB9BD1D",
"Name": "Vlsft",
"ConnectionStrings": [
{
"Name": "Default",
"Value": "..."
},
{
"Name": "AbpDeskMongoBlog",
"Value": "..."
}
]
"ConnectionStrings": {
"Default": "...",
"AbpDeskMongoBlog": "..."
}
}
]
}

6
src/Volo.Abp.MultiTenancy.Abstractions/Volo/Abp/MultiTenancy/TenantScopeProvider.cs

@ -4,6 +4,12 @@ using Volo.Abp.DependencyInjection;
namespace Volo.Abp.MultiTenancy
{
/* This cass uses TenantScope instead of TenantInfo because being null of CurrentScope is different that being null of CurrentScope.Tenant.
* A null CurrentScope indicates that we haven't set any scope explicitly (and we can use tenant resolvers to determine the current tenant).
* A null CurrentScope.Tenant indicates that we have set null tenant value (maybe to switch to host) explicitly.
* A non-null CurrentScope.Tenant indicates that we have set a tenant value explicitly.
*/
public class TenantScopeProvider : ISingletonDependency
{
public TenantScope CurrentScope

Loading…
Cancel
Save