Skip to content

TenantDescriptor

Namespace AgentPrism · Assembly AgentPrism.Abstractions.dll

A registered tenant.

public sealed record TenantDescriptor : IEquatable<TenantDescriptor>

objectTenantDescriptor

IEquatable<TenantDescriptor>

object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

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.

public TenantDescriptor()

The creation time (UTC).

public DateTimeOffset CreatedAt { get; init; }

DateTimeOffset

The name shown in the UI.

public required string DisplayName { get; init; }

string

The tenant identifier. A time-ordered UUID (v7).

public required Guid Id { get; init; }

Guid

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; }

string

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(TenantDescriptor? other)

other TenantDescriptor?

bool

public override int GetHashCode()

int

public override string ToString()

string

operator ==(TenantDescriptor?, TenantDescriptor?)

Section titled “ operator ==(TenantDescriptor?, TenantDescriptor?)”
public static bool operator ==(TenantDescriptor? left, TenantDescriptor? right)

left TenantDescriptor?

right TenantDescriptor?

bool

operator !=(TenantDescriptor?, TenantDescriptor?)

Section titled “ operator !=(TenantDescriptor?, TenantDescriptor?)”
public static bool operator !=(TenantDescriptor? left, TenantDescriptor? right)

left TenantDescriptor?

right TenantDescriptor?

bool