Class BaseDomainIsNotADomainName

Namespace
Cratis.Arc.Tenancy
Assembly
Cratis.Arc.Core.dll

The exception that is thrown when subdomain tenancy is configured with a base domain that cannot identify tenants.

public class BaseDomainIsNotADomainName : Exception, ISerializable
Inheritance
BaseDomainIsNotADomainName
Implements
Inherited Members
Extension Methods

Remarks

Subdomain tenancy resolves the tenant from the request host, and falls back to a header the client sets. Without a base domain to match against, that fallback would answer every request, so the configuration is refused instead.

Constructors

BaseDomainIsNotADomainName(string)

The exception that is thrown when subdomain tenancy is configured with a base domain that cannot identify tenants.

public BaseDomainIsNotADomainName(string baseDomain)

Parameters

baseDomain string

The configured base domain.

Remarks

Subdomain tenancy resolves the tenant from the request host, and falls back to a header the client sets. Without a base domain to match against, that fallback would answer every request, so the configuration is refused instead.

Methods

ThrowIfNotADomainName(string)

Throws if a base domain cannot be used to resolve tenants from a request host.

public static void ThrowIfNotADomainName(string baseDomain)

Parameters

baseDomain string

The base domain to check.

Exceptions

BaseDomainIsNotADomainName

Thrown when the base domain is not a domain name.