Interface ITenantSource<TTenant>
This interface defines the minimum implementation of an external tenant source store.
Namespace: Talegen.AspNetCore.Multitenant
Assembly: Talegen.AspNetCore.Multitenant.dll
Syntax
public interface ITenantSource<TTenant>
where TTenant : class, ITenant, new()
Type Parameters
| Name | Description |
|---|---|
| TTenant | The type of the tenant model. |
Methods
| Improve this Doc View SourceFindTenantAsync(String, CancellationToken)
This method implements the tenant search logic for an external tenant source.
Declaration
Task<TTenant> FindTenantAsync(string tenantIdentifier, CancellationToken cancellationToken = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | tenantIdentifier | The tenant identifier to find. |
| CancellationToken | cancellationToken | Contains an optional cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<TTenant> | Returns the ITenant object if found. |