Table of Contents

Class WebsiteChannelLanguagePrefixDomain

Namespace
CMS.Websites
Assembly
CMS.Websites.dll

Domain of a website channel routing by a language prefix in the URL path.

public sealed record WebsiteChannelLanguagePrefixDomain
Inheritance
object
WebsiteChannelLanguagePrefixDomain
Extension Methods

Remarks

A derived view of the channel's configured and stored domains, never persisted in this form. Domains carry no URL scheme and may include a port or a path, for example mysite.com or localhost:5000/path.

Constructors

WebsiteChannelLanguagePrefixDomain(string, bool)

Domain of a website channel routing by a language prefix in the URL path.

public WebsiteChannelLanguagePrefixDomain(string Domain, bool IsAlias)

Parameters

Domain string

The domain, from DomainOverrides or from WebsiteChannelDomain.

IsAlias bool

Whether the domain is an alternative one. The canonical domain is the one CMS.Websites.Internal.IWebsiteChannelDomainProvider.GetDomain(int, System.Threading.CancellationToken) resolves; a channel has at most one.

Remarks

A derived view of the channel's configured and stored domains, never persisted in this form. Domains carry no URL scheme and may include a port or a path, for example mysite.com or localhost:5000/path.

Properties

Domain

The domain, from DomainOverrides or from WebsiteChannelDomain.

public string Domain { get; init; }

Property Value

string

IsAlias

Whether the domain is an alternative one. The canonical domain is the one CMS.Websites.Internal.IWebsiteChannelDomainProvider.GetDomain(int, System.Threading.CancellationToken) resolves; a channel has at most one.

public bool IsAlias { get; init; }

Property Value

bool

Methods

Deconstruct(out string, out bool)

public void Deconstruct(out string Domain, out bool IsAlias)

Parameters

Domain string
IsAlias bool

Equals(WebsiteChannelLanguagePrefixDomain?)

public bool Equals(WebsiteChannelLanguagePrefixDomain? other)

Parameters

other WebsiteChannelLanguagePrefixDomain

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(WebsiteChannelLanguagePrefixDomain?, WebsiteChannelLanguagePrefixDomain?)

public static bool operator ==(WebsiteChannelLanguagePrefixDomain? left, WebsiteChannelLanguagePrefixDomain? right)

Parameters

left WebsiteChannelLanguagePrefixDomain
right WebsiteChannelLanguagePrefixDomain

Returns

bool

operator !=(WebsiteChannelLanguagePrefixDomain?, WebsiteChannelLanguagePrefixDomain?)

public static bool operator !=(WebsiteChannelLanguagePrefixDomain? left, WebsiteChannelLanguagePrefixDomain? right)

Parameters

left WebsiteChannelLanguagePrefixDomain
right WebsiteChannelLanguagePrefixDomain

Returns

bool