ข้ามไปยังเนื้อหา

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 MultiTenancyRuntimeOptions

objectMultiTenancyRuntimeOptions

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 MultiTenancyRuntimeOptions()

Gets or sets the default tenant identifier used when no explicit request hint resolves a tenant.

public string? DefaultTenantId { get; set; }

string?

Gets or sets a value indicating whether the built-in configuration-driven tenant resolver is active.

public bool EnableDefaultResolver { get; set; }

bool

Gets the configured tenants that the built-in resolver can match by id, key, or domain.

public List<TenantContext> Tenants { get; }

List<TenantContext>

FromConfiguration(IConfiguration?, string)

Section titled “ FromConfiguration(IConfiguration?, string)”

Reads multi-tenancy runtime options from configuration.

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

configuration IConfiguration?

The root configuration that contains the engine section.

sectionPath string

The root configuration section path to read from.

MultiTenancyRuntimeOptions

The parsed multi-tenancy runtime options.