Skip to content

Class TenancySettings

Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll

Describes configuration-driven multi-tenancy settings for a Cephalon app.

public sealed class TenancySettings

objectTenancySettings

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Initializes a new instance of the class.

public TenancySettings(bool? enabled = null, string? mode = null)

enabled bool?

Whether multi-tenancy was explicitly enabled.

mode string?

The selected tenancy mode.

Gets an empty tenancy-settings instance.

public static TenancySettings Empty { get; }

TenancySettings

Gets a value indicating whether multi-tenancy was explicitly enabled.

public bool? Enabled { get; }

bool?

Gets a value indicating whether any tenancy settings were explicitly supplied.

public bool HasValues { get; }

bool

Gets the selected tenancy mode.

public string? Mode { get; }

string?

FromConfiguration(IConfiguration, string)

Section titled “ FromConfiguration(IConfiguration, string)”

Reads tenancy settings from configuration.

public static TenancySettings FromConfiguration(IConfiguration configuration, string sectionPath = "Engine")

configuration IConfiguration

The configuration source that contains the engine section.

sectionPath string

The root configuration section path to read from.

TenancySettings

The parsed tenancy settings.