Class ApplicationBuilderExtensions
This class contains application builder extensions for implementing multi-tenant context loader in the startup of the application.
Inheritance
System.Object
ApplicationBuilderExtensions
Namespace: Talegen.AspNetCore.Multitenant
Assembly: Talegen.AspNetCore.Multitenant.dll
Syntax
public static class ApplicationBuilderExtensions : object
Methods
| Improve this Doc View SourceUseMultiTenancy<TTenant>(IApplicationBuilder, ILogger)
Uses the multi tenancy middleware class.
Declaration
public static IApplicationBuilder UseMultiTenancy<TTenant>(this IApplicationBuilder builder, ILogger logger = null)
where TTenant : class, ITenant, new()
Parameters
Type | Name | Description |
---|---|---|
IApplicationBuilder | builder | The builder. |
ILogger | logger | Contains a logger instance. |
Returns
Type | Description |
---|---|
IApplicationBuilder | Returns the application builder. |
Type Parameters
Name | Description |
---|---|
TTenant | The type of the tenant. |