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?, string[]?, AdditionalPropertyBag?)
Initializes a new instance of the NeosTenantInfo class.
[SuppressMessage("Major Code Smell", "S107:Methods should not have too many parameters", Justification = "Refactoring would cause disproportionate impact on existing code.")]
public NeosTenantInfo(string id, string identifier = "", string? name = null, string? connectionString = null, DatabaseType? databaseType = null, int? licenseId = null, string[]? inputLanguages = null, AdditionalPropertyBag? additionalProperties = null)
Parameters
idstringId.
identifierstringIdentifier.
namestringName.
connectionStringstringConnection string.
databaseTypeDatabaseType?Database type.
licenseIdint?Identifier of the license in the LicenseManagement cluster.
inputLanguagesstring[]Input languages.
additionalPropertiesAdditionalPropertyBagAdditional properties.
Fields
DefaultTenantId
Gets the default tenant identifier 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
EmptyTenantId
Gets the empty tenant Id when cluster is started in monotenancy mode.
public const string EmptyTenantId = "0"
Field Value
TenantHeaderKey
Gets the http header key in header strategy.
public const string TenantHeaderKey = "Neos-Tenant"
Field Value
Properties
AdditionalProperties
Gets or sets the additional properties.
public AdditionalPropertyBag AdditionalProperties { get; set; }
Property Value
ConnectionString
Gets or sets the connection string.
public string? ConnectionString { get; set; }
Property Value
DatabaseType
Gets or sets the database type.
public DatabaseType? DatabaseType { get; set; }
Property Value
Id
public string Id { get; set; }
Property Value
Identifier
public string Identifier { get; set; }
Property Value
InputLanguages
Gets or sets the input languages.
public string[] InputLanguages { get; set; }
Property Value
- string[]
IsEmpty
Gets a value indicating whether this instance is a empty tenant.
[JsonIgnore]
public bool IsEmpty { get; }
Property Value
LicenseId
Gets or sets the license identifier.
public int? LicenseId { get; set; }
Property Value
- int?
Name
Gets or sets a friendly name for the tenant.
public string? Name { get; set; }