Class TenancySettings
Namespace: Cephalon.Engine.Configuration
Assembly: Cephalon.Engine.dll
Describes configuration-driven multi-tenancy settings for a Cephalon app.
public sealed class TenancySettingsInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”TenancySettings(bool?, string?)
Section titled “ TenancySettings(bool?, string?)”Initializes a new instance of the
public TenancySettings(bool? enabled = null, string? mode = null)Parameters
Section titled “Parameters”enabled bool?
Whether multi-tenancy was explicitly enabled.
mode string?
The selected tenancy mode.
Properties
Section titled “Properties”Gets an empty tenancy-settings instance.
public static TenancySettings Empty { get; }Property Value
Section titled “Property Value”Enabled
Section titled “ Enabled”Gets a value indicating whether multi-tenancy was explicitly enabled.
public bool? Enabled { get; }Property Value
Section titled “Property Value”bool?
HasValues
Section titled “ HasValues”Gets a value indicating whether any tenancy settings were explicitly supplied.
public bool HasValues { get; }Property Value
Section titled “Property Value”Gets the selected tenancy mode.
public string? Mode { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”FromConfiguration(IConfiguration, string)
Section titled “ FromConfiguration(IConfiguration, string)”Reads tenancy settings from configuration.
public static TenancySettings FromConfiguration(IConfiguration configuration, string sectionPath = "Engine")Parameters
Section titled “Parameters”configuration IConfiguration
The configuration source that contains the engine section.
sectionPath string
The root configuration section path to read from.
Returns
Section titled “Returns”The parsed tenancy settings.