Skip to content

Class TenantMembershipDescriptor

Namespace: Cephalon.MultiTenancy.Governance.Services
Assembly: Cephalon.MultiTenancy.Governance.dll

Describes one principal membership inside a tenant.

public sealed class TenantMembershipDescriptor

objectTenantMembershipDescriptor

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

TenantMembershipDescriptor(string, string, string?, string?, IReadOnlyList<string>?, string, DateTimeOffset?, DateTimeOffset?, string?, IReadOnlyDictionary<string, string>?)

Section titled “ TenantMembershipDescriptor(string, string, string?, string?, IReadOnlyList<string>?, string, DateTimeOffset?, DateTimeOffset?, string?, IReadOnlyDictionary<string, string>?)”

Creates a new tenant-membership descriptor.

public TenantMembershipDescriptor(string tenantId, string principalId, string? principalKind = null, string? displayName = null, IReadOnlyList<string>? roles = null, string status = "active", DateTimeOffset? effectiveFromUtc = null, DateTimeOffset? expiresAtUtc = null, string? sourceModuleId = null, IReadOnlyDictionary<string, string>? metadata = null)

tenantId string

The stable tenant identifier.

principalId string

The stable principal identifier.

principalKind string?

The principal kind, such as user, group, service, or organization.

displayName string?

The optional operator-facing membership name.

roles IReadOnlyList<string>?

The tenant-local roles associated with the principal.

status string

The membership status.

effectiveFromUtc DateTimeOffset?

The UTC timestamp when the membership becomes active.

expiresAtUtc DateTimeOffset?

The UTC timestamp when the membership expires.

sourceModuleId string?

The module that contributed the membership when one is known.

metadata IReadOnlyDictionary<string, string>?

Optional operator-facing metadata attached to the membership.

Gets the optional operator-facing membership name.

public string? DisplayName { get; }

string?

Gets the UTC timestamp when the membership becomes active.

public DateTimeOffset? EffectiveFromUtc { get; }

DateTimeOffset?

Gets the UTC timestamp when the membership expires.

public DateTimeOffset? ExpiresAtUtc { get; }

DateTimeOffset?

Gets optional operator-facing metadata attached to the membership.

public IReadOnlyDictionary<string, string> Metadata { get; }

IReadOnlyDictionary<string, string>

Gets the stable principal identifier.

public string PrincipalId { get; }

string

Gets the principal kind, such as user, group, service, or organization.

public string PrincipalKind { get; }

string

Gets the tenant-local roles associated with the principal.

public IReadOnlyList<string> Roles { get; }

IReadOnlyList<string>

Gets the module that contributed the membership when one is known.

public string? SourceModuleId { get; }

string?

Gets the membership status.

public string Status { get; }

string

Gets the stable tenant identifier.

public string TenantId { get; }

string