Table of Contents

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

id string

Id.

identifier string

Identifier.

name string

Name.

connectionString string

Connection string.

databaseType DatabaseType?

Database type.

licenseId int?

Identifier of the license in the LicenseManagement cluster.

inputLanguages string[]

Input languages.

additionalProperties AdditionalPropertyBag

Additional properties.

Fields

DefaultTenantId

Gets the default tenant identifier when cluster is started in monotenancy mode.

public const string DefaultTenantId = "__default__"

Field Value

string

Empty

Gets an empty instance.

public static readonly NeosTenantInfo Empty

Field Value

NeosTenantInfo

EmptyTenantId

Gets the empty tenant Id when cluster is started in monotenancy mode.

public const string EmptyTenantId = "0"

Field Value

string

TenantHeaderKey

Gets the http header key in header strategy.

public const string TenantHeaderKey = "Neos-Tenant"

Field Value

string

Properties

AdditionalProperties

Gets or sets the additional properties.

public AdditionalPropertyBag AdditionalProperties { get; set; }

Property Value

AdditionalPropertyBag

ConnectionString

Gets or sets the connection string.

public string? ConnectionString { get; set; }

Property Value

string

DatabaseType

Gets or sets the database type.

public DatabaseType? DatabaseType { get; set; }

Property Value

DatabaseType?

Id

public string Id { get; set; }

Property Value

string

Identifier

public string Identifier { get; set; }

Property Value

string

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

bool

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; }

Property Value

string