Class TenantMembershipDescriptor
Namespace: Cephalon.MultiTenancy.Governance.Services
Assembly: Cephalon.MultiTenancy.Governance.dll
Describes one principal membership inside a tenant.
public sealed class TenantMembershipDescriptorInheritance
Section titled “Inheritance”object ← TenantMembershipDescriptor
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”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)Parameters
Section titled “Parameters”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.
Properties
Section titled “Properties”DisplayName
Section titled “ DisplayName”Gets the optional operator-facing membership name.
public string? DisplayName { get; }Property Value
Section titled “Property Value”EffectiveFromUtc
Section titled “ EffectiveFromUtc”Gets the UTC timestamp when the membership becomes active.
public DateTimeOffset? EffectiveFromUtc { get; }Property Value
Section titled “Property Value”ExpiresAtUtc
Section titled “ ExpiresAtUtc”Gets the UTC timestamp when the membership expires.
public DateTimeOffset? ExpiresAtUtc { get; }Property Value
Section titled “Property Value”Metadata
Section titled “ Metadata”Gets optional operator-facing metadata attached to the membership.
public IReadOnlyDictionary<string, string> Metadata { get; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
PrincipalId
Section titled “ PrincipalId”Gets the stable principal identifier.
public string PrincipalId { get; }Property Value
Section titled “Property Value”PrincipalKind
Section titled “ PrincipalKind”Gets the principal kind, such as user, group, service, or organization.
public string PrincipalKind { get; }Property Value
Section titled “Property Value”Gets the tenant-local roles associated with the principal.
public IReadOnlyList<string> Roles { get; }Property Value
Section titled “Property Value”SourceModuleId
Section titled “ SourceModuleId”Gets the module that contributed the membership when one is known.
public string? SourceModuleId { get; }Property Value
Section titled “Property Value”Status
Section titled “ Status”Gets the membership status.
public string Status { get; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”Gets the stable tenant identifier.
public string TenantId { get; }