Extensions related to TenantResolverMiddleware.
Adds a rewriter middleware that strip the tenant name from the Path.
public IApplicationBuilder UseTenantNameUrlRewriter<TTenant>(builder)
The application builder.
Name | Type | Summary |
---|---|---|
builder | IApplicationBuilder | Application builder. |
Adds a tenant resolver middleware that looks the current tenant from the Uri.
It handle the requet with a StatusCode = 400 if not tenant is found unless that a tenant not found notification handles the request.
The default tenant provider does not filter un-provisioned tenants it is up to the application to verify this if required.
public IApplicationBuilder UseTenantResolver<TTenant>(builder, options)
The application builder.
Name | Type | Summary |
---|---|---|
builder | IApplicationBuilder | Application builder. |
options | TenantResolverOptions | Options to pass to the middleware. |
Type | Summary |
---|---|
ArgumentNullException | Thrown when options is null. |
In this document