Skip to content

Interface ITenantInvitationDeliveryRetryStore

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

Stores tenant invitation delivery retry entries managed by the governance companion pack.

public interface ITenantInvitationDeliveryRetryStore

Gets the number of retained retry entries.

int Count { get; }

int

Gets every retained retry entry.

IReadOnlyList<TenantInvitationDeliveryRetryDescriptor> Entries { get; }

IReadOnlyList<TenantInvitationDeliveryRetryDescriptor>

Gets a value indicating whether retry entries survive process restarts.

bool IsDurable { get; }

bool

Gets the latest retained retry entry when one exists.

TenantInvitationDeliveryRetryDescriptor? LatestEntry { get; }

TenantInvitationDeliveryRetryDescriptor?

Gets the runtime ownership label for the retry queue.

string Ownership { get; }

string

Gets the storage kind used by the retry queue.

string StoreKind { get; }

string

Gets one retry entry by identifier.

TenantInvitationDeliveryRetryDescriptor? GetById(string retryId)

retryId string

The retry entry identifier.

TenantInvitationDeliveryRetryDescriptor?

The matching retry entry, or null when none exists.

Gets retry entries that are pending and optionally due at or before the supplied timestamp.

IReadOnlyList<TenantInvitationDeliveryRetryDescriptor> GetPending(DateTimeOffset atUtc, int limit, bool dueOnly = true)

atUtc DateTimeOffset

The timestamp used to decide due entries.

limit int

The maximum number of entries to return.

dueOnly bool

A value indicating whether entries scheduled after atUtc should be skipped.

IReadOnlyList<TenantInvitationDeliveryRetryDescriptor>

The matching pending retry entries.

Removes a retry entry.

bool Remove(string retryId)

retryId string

The retry entry identifier.

bool

true when an entry was removed; otherwise false.

Upsert(TenantInvitationDeliveryRetryDescriptor)

Section titled “ Upsert(TenantInvitationDeliveryRetryDescriptor)”

Adds or replaces a retry entry.

void Upsert(TenantInvitationDeliveryRetryDescriptor entry)

entry TenantInvitationDeliveryRetryDescriptor

The retry entry to store.