Class TenantServiceCollectionExtensions
This class contains service collection extensions for creating a tenant resolver.
Inheritance
System.Object
TenantServiceCollectionExtensions
Namespace: Talegen.AspNetCore.Multitenant
Assembly: Talegen.AspNetCore.Multitenant.dll
Syntax
public static class TenantServiceCollectionExtensions : object
Methods
| Improve this Doc View SourceAddMultiTenancy<TTenant>(IServiceCollection)
Adds the multi tenancy.
Declaration
public static TenantBuilder<TTenant> AddMultiTenancy<TTenant>(this IServiceCollection services)
where TTenant : class, ITenant, new()
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceCollection | services | The services. |
Returns
| Type | Description |
|---|---|
| TenantBuilder<TTenant> | Returns the tenant builder. |
Type Parameters
| Name | Description |
|---|---|
| TTenant | The type of the tenant. |