Skip to content

Interface ITenantMembershipStore

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

Stores runtime tenant memberships managed by the multi-tenancy governance companion pack.

public interface ITenantMembershipStore

Gets the number of stored runtime tenant memberships.

int Count { get; }

int

Gets a value indicating whether membership state survives process restarts.

bool IsDurable { get; }

bool

Gets the stored runtime tenant memberships.

IReadOnlyList<TenantMembershipDescriptor> Memberships { get; }

IReadOnlyList<TenantMembershipDescriptor>

Gets the ownership mode for the store implementation.

string Ownership { get; }

string

Gets the operator-facing store kind.

string StoreKind { get; }

string

Creates or replaces one stored runtime tenant membership.

void Upsert(TenantMembershipDescriptor membership)

membership TenantMembershipDescriptor

The tenant membership to store.