HostTenantResolverOptions class
Namespace: Tenantry.AspNetCore · Package: Tenantry.AspNetCore · API reference
Options for HostTenantResolver, set with tenant.ResolveFromHost(o => …).
public sealed class HostTenantResolverOptionsProperties
ExcludedDomains
Domains whose hosts are not tenants: a host that is one of them, or a subdomain of one, resolves nothing. Contains localhost by default. Add your own domain, such as example.com, whose subdomains ResolveFromSubdomain resolves.
public ISet<string> ExcludedDomains { get; }Value: ISet<string>
HostTenantResolver class
Resolves the tenant from the request's host name, for tenants that bring their own domain: a request to app.acme.com has the identifier app.acme.com, which your tenant store's ITenantStore<TKey>.FindByIdentifierAsynctenantry-itenantstore.md maps to a tenant.
ITenantAccessValidator<TKey> interface
Decides whether a request may use the tenant it names.