Class MultiTenancyRuntimeOptions
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.MultiTenancy.Configuration
Assembly: Cephalon.MultiTenancy.dll
Describes host-agnostic runtime options for the Cephalon multi-tenancy companion pack.
public sealed class MultiTenancyRuntimeOptionsInheritance
Section titled “Inheritance”object ← MultiTenancyRuntimeOptions
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”MultiTenancyRuntimeOptions()
Section titled “ MultiTenancyRuntimeOptions()”Initializes a new instance of the
public MultiTenancyRuntimeOptions()Properties
Section titled “Properties”DefaultTenantId
Section titled “ DefaultTenantId”Gets or sets the default tenant identifier used when no explicit request hint resolves a tenant.
public string? DefaultTenantId { get; set; }Property Value
Section titled “Property Value”EnableDefaultResolver
Section titled “ EnableDefaultResolver”Gets or sets a value indicating whether the built-in configuration-driven tenant resolver is active.
public bool EnableDefaultResolver { get; set; }Property Value
Section titled “Property Value”Tenants
Section titled “ Tenants”Gets the configured tenants that the built-in resolver can match by id, key, or domain.
public List<TenantContext> Tenants { get; }Property Value
Section titled “Property Value”List<TenantContext>
Methods
Section titled “Methods”FromConfiguration(IConfiguration?, string)
Section titled “ FromConfiguration(IConfiguration?, string)”Reads multi-tenancy runtime options from configuration.
public static MultiTenancyRuntimeOptions FromConfiguration(IConfiguration? configuration, string sectionPath = "Engine")Parameters
Section titled “Parameters”configuration IConfiguration?
The root configuration that contains the engine section.
sectionPath string
The root configuration section path to read from.
Returns
Section titled “Returns”The parsed multi-tenancy runtime options.