Browse Source
Modify an error description
Inheritance interface is not “ITenantResolver”,modified “ITenantResolveContributor”.
See lines 118 and 134.
pull/1738/head
abp modules
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
docs/zh-Hans/Multi-Tenancy.md
|
|
@ -115,7 +115,7 @@ namespace MyCompany.MyProject |
|
|
{ |
|
|
{ |
|
|
Configure<TenantResolveOptions>(options => |
|
|
Configure<TenantResolveOptions>(options => |
|
|
{ |
|
|
{ |
|
|
options.TenantResolvers.Add(new MyCustomTenantResolver()); |
|
|
options.TenantResolvers.Add(new MyCustomTenantResolveContributor()); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
//... |
|
|
//... |
|
|
@ -124,14 +124,14 @@ namespace MyCompany.MyProject |
|
|
} |
|
|
} |
|
|
```` |
|
|
```` |
|
|
|
|
|
|
|
|
MyCustomTenantResolver必须像下面这样实现**ITenantResolver**接口: |
|
|
MyCustomTenantResolveContributor必须像下面这样实现**ITenantResolveContributor**接口: |
|
|
|
|
|
|
|
|
````C# |
|
|
````C# |
|
|
using Volo.Abp.MultiTenancy; |
|
|
using Volo.Abp.MultiTenancy; |
|
|
|
|
|
|
|
|
namespace MyCompany.MyProject |
|
|
namespace MyCompany.MyProject |
|
|
{ |
|
|
{ |
|
|
public class MyCustomTenantResolver : ITenantResolver |
|
|
public class MyCustomTenantResolveContributor : ITenantResolveContributor |
|
|
{ |
|
|
{ |
|
|
public void Resolve(ITenantResolveContext context) |
|
|
public void Resolve(ITenantResolveContext context) |
|
|
{ |
|
|
{ |
|
|
|