Table of Contents

Class Alias

Namespace
Oqtane.Models
Assembly
Oqtane.Shared.dll

An Alias maps a url like oqtane.my or oqtane.my/products to a Site and Tenant

public class Alias : ModelBase, IAuditable
Inheritance
Alias
Implements
Inherited Members

Properties

AliasId

The primary ID for internal use. It's also used in API calls to identify the site.

public int AliasId { get; set; }

Property Value

int

BaseUrl

Base Url for static resources (note that this will only be set for remote clients)

[NotMapped]
public string BaseUrl { get; set; }

Property Value

string

IsDefault

Specifies if the alias is the default for the tenant/site. Requests for non-default aliases are redirected to the default alias.

public bool IsDefault { get; set; }

Property Value

bool

Name

The Alias Name = URL. The Name contains the entire path - so it can be oqtane.me, www.oqtane.me or oqtane.me/products

public string Name { get; set; }

Property Value

string

Path

The path contains the url-part after the first slash.

  • If the Name is oqtane.me the Path is empty
  • if the Name is oqtane.me/products the Path is products
[NotMapped]
public string Path { get; }

Property Value

string

Protocol

Protocol for the request from which the alias was resolved (ie. http or https )

[NotMapped]
public string Protocol { get; set; }

Property Value

string

SiteId

The Site this Alias references.

public int SiteId { get; set; }

Property Value

int

SiteKey

Unique key used for identifying a site within a runtime process (ie. cache, file system, etc...)

[NotMapped]
public string SiteKey { get; }

Property Value

string

TenantId

The Tenant this Alias (and the Site) references. It's important, as anything related to the Alias must be requested from a database, which is found by the Tenant it's in.

public int TenantId { get; set; }

Property Value

int