Tenantry CoreAPI reference
ITenantKeyTypeVisitor<TResult> interface
Namespace: Tenantry · Package: Tenantry.Core · API reference
An extension point: for code that extends the package, such as another package that builds on it. An application rarely needs it.
Code that needs the tenant key type, given it by ITenantKeyType.
[EditorBrowsable(EditorBrowsableState.Advanced)]
public interface ITenantKeyTypeVisitor<out TResult>Type parameters
TResult: What the code returns.
Methods
Visit<TKey>()
Runs with the tenant key type as TKey.
TResult Visit<TKey>() where TKey : IEquatable<TKey>, IParsable<TKey>Type parameters:
TKey: The tenant key type.
Returns: TResult: The result.
ITenantKeyType interface
An extension point: for code that extends the package, such as another package that builds on it.
ITenantLookup<TKey> interface
Reads tenants from the registered ITenantStore<TKey>tenantry-itenantstore.md on behalf of singletons, such as hosted services, resolving the store from a fresh dependency-injection scope for each call.