Class TenantContext
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Abstractions.Tenancy
Assembly: Cephalon.Abstractions.dll
Describes the tenant currently associated with an operation or ambient runtime scope.
public sealed class TenantContextInheritance
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”TenantContext(string, string?, string?, string?, IReadOnlyList<string>?, IReadOnlyDictionary<string, string>?)
Section titled “ TenantContext(string, string?, string?, string?, IReadOnlyList<string>?, IReadOnlyDictionary<string, string>?)”Creates a new tenant context.
public TenantContext(string tenantId, string? tenantKey = null, string? displayName = null, string? parentTenantId = null, IReadOnlyList<string>? domains = null, IReadOnlyDictionary<string, string>? attributes = null)Parameters
Section titled “Parameters”tenantId string
The stable tenant identifier.
tenantKey string?
The tenant key, slug, or subdomain-friendly identifier when one is known.
displayName string?
The human-readable tenant name when one is known.
parentTenantId string?
The parent tenant identifier when one is known.
domains IReadOnlyList<string>?
Optional domains associated with the tenant.
attributes IReadOnlyDictionary<string, string>?
Optional tenant attributes.
Properties
Section titled “Properties”Attributes
Section titled “ Attributes”Gets the tenant attributes.
public IReadOnlyDictionary<string, string> Attributes { get; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
DisplayName
Section titled “ DisplayName”Gets the human-readable tenant name when one is known.
public string? DisplayName { get; }Property Value
Section titled “Property Value”Domains
Section titled “ Domains”Gets the domains associated with the tenant.
public IReadOnlyList<string> Domains { get; }Property Value
Section titled “Property Value”ParentTenantId
Section titled “ ParentTenantId”Gets the parent tenant identifier when one is known.
public string? ParentTenantId { get; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”Gets the stable tenant identifier.
public string TenantId { get; }Property Value
Section titled “Property Value”TenantKey
Section titled “ TenantKey”Gets the tenant key, slug, or subdomain-friendly identifier when one is known.
public string? TenantKey { get; }