TenantDescriptor
AgentPrism.Abstractions.dllA registered tenant.
public sealed record TenantDescriptor : IEquatable<TenantDescriptor>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”A tenant registration is not required. The tenant_id
in other tables is the same text as this table’s slug value, but it
carries no foreign key: a tenant with no registration must not error at
run time. The registration only provides a name and description to the
tenant picker in the UI.
Constructors
Section titled “Constructors”TenantDescriptor()
Section titled “ TenantDescriptor()”public TenantDescriptor()Properties
Section titled “Properties”CreatedAt
Section titled “ CreatedAt”The creation time (UTC).
public DateTimeOffset CreatedAt { get; init; }Property Value
Section titled “Property Value”DisplayName
Section titled “ DisplayName”The name shown in the UI.
public required string DisplayName { get; init; }Property Value
Section titled “Property Value”The tenant identifier. A time-ordered UUID (v7).
public required Guid Id { get; init; }Property Value
Section titled “Property Value”The tenant key. The same text as the tenant_id column in other
tables, and ITenantContext.TenantId returns this value.
public required string Slug { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(TenantDescriptor?)
Section titled “ Equals(TenantDescriptor?)”public bool Equals(TenantDescriptor? other)Parameters
Section titled “Parameters”other TenantDescriptor?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(TenantDescriptor?, TenantDescriptor?)
Section titled “ operator ==(TenantDescriptor?, TenantDescriptor?)”public static bool operator ==(TenantDescriptor? left, TenantDescriptor? right)Parameters
Section titled “Parameters”left TenantDescriptor?
right TenantDescriptor?
Returns
Section titled “Returns”operator !=(TenantDescriptor?, TenantDescriptor?)
Section titled “ operator !=(TenantDescriptor?, TenantDescriptor?)”public static bool operator !=(TenantDescriptor? left, TenantDescriptor? right)Parameters
Section titled “Parameters”left TenantDescriptor?
right TenantDescriptor?