Skip to content

TenantHost Class

The one spelling a host name is compared in.

C#
public static class TenantHost

Inheritance System.Object → TenantHost

Remarks

A request can name one host several ways - with a trailing dot, in Unicode or in its ASCII form, in any case - and a tenant compared as written would be missed by all but one of them.

Methods

TenantHost.Normalize(string) Method

host in ASCII, in lower case, without a trailing dot; an IP address in its canonical form, an IPv6 one in brackets as a Host header carries it.

C#
public static string Normalize(string host);

Parameters

host System.String

Returns

System.String

Remarks

A name that is not a valid internationalized host comes back only lowered and trimmed. It arrives in a request's Host header, where it is the caller's to write, and no issuer's host can equal it.