Class NeosTenantInfo
- Namespace
- GroupeIsa.Neos.Shared.MultiTenant
- Assembly
- GroupeIsa.Neos.Shared.dll
Represents the tenant informations.
public class NeosTenantInfo : ITenantInfo
- Inheritance
-
NeosTenantInfo
- Implements
-
ITenantInfo
- Inherited Members
Constructors
NeosTenantInfo()
Initializes a new instance of the NeosTenantInfo class.
public NeosTenantInfo()
NeosTenantInfo(string?, string?, string?, string?, DatabaseType?, int?)
Initializes a new instance of the NeosTenantInfo class.
public NeosTenantInfo(string? id, string? identifier = null, string? name = null, string? connectionString = null, DatabaseType? databaseType = null, int? licenseId = null)
Parameters
id
stringId.
identifier
stringIdentifier.
name
stringName.
connectionString
stringConnection string.
databaseType
DatabaseType?Database type.
licenseId
int?Identifier of the license in the LicenseManagement cluster.
Fields
DefaultTenantId
Gets the default tenant Id when cluster is started in monotenancy mode.
public const string DefaultTenantId = "__default__"
Field Value
Empty
Gets an empty instance.
public static readonly NeosTenantInfo Empty
Field Value
TenantHeaderKey
Gets the http header key in header strategy.
public const string TenantHeaderKey = "Neos-Tenant"
Field Value
Properties
ConnectionString
Gets or sets a connection string for the tenant.
public string? ConnectionString { get; set; }
Property Value
DatabaseType
Gets or sets the database type.
public DatabaseType? DatabaseType { get; set; }
Property Value
Id
Gets or sets a unique id for the tenant.
public string? Id { get; set; }
Property Value
Remarks
Unlike the Identifier, the id is never intended to be changed.
Identifier
Gets or sets a unique identifier for the tenant.
public string? Identifier { get; set; }
Property Value
Remarks
The Identifier is intended for use during tenant resolution and format is determined by convention. For example a web based strategy may require URL friendly identifiers. Identifiers can be changed if needed.
LicenseId
Gets or sets the license identifier.
public int? LicenseId { get; set; }
Property Value
- int?
Name
Gets or sets a display friendly name for the tenant.
public string? Name { get; set; }