Update Multi-Tenancy.md

pull/2282/head
maliming 6 years ago committed by GitHub
parent 29158004ed
commit 7f87bb684e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -312,10 +312,10 @@ Volo.Abp.AspNetCore.MultiTenancy 添加了下面这些租户解析器,从当前W
http://nginx.org/en/docs/http/ngx_http_core_module.html#ignore_invalid_headers http://nginx.org/en/docs/http/ngx_http_core_module.html#ignore_invalid_headers
http://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers http://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers
可以使用AspNetCoreMultiTenancyOptions修改默认的参数名"__tenant".例如: 可以使用AbpAspNetCoreMultiTenancyOptions修改默认的参数名"__tenant".例如:
````C# ````C#
services.Configure<AspNetCoreMultiTenancyOptions>(options => services.Configure<AbpAspNetCoreMultiTenancyOptions>(options =>
{ {
options.TenantKey = "MyTenantKey"; options.TenantKey = "MyTenantKey";
}); });

Loading…
Cancel
Save