Skip to content

Class TenantInvitationDeliveryRetryDescriptor

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

Describes one queued tenant invitation delivery retry entry.

public sealed class TenantInvitationDeliveryRetryDescriptor

objectTenantInvitationDeliveryRetryDescriptor

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

TenantInvitationDeliveryRetryDescriptor(string, string, string, string?, string?, string?, string?, string?, bool, string, int, int, DateTimeOffset, DateTimeOffset, DateTimeOffset?, string?, string?, IReadOnlyDictionary<string, string>?)

Section titled “ TenantInvitationDeliveryRetryDescriptor(string, string, string, string?, string?, string?, string?, string?, bool, string, int, int, DateTimeOffset, DateTimeOffset, DateTimeOffset?, string?, string?, IReadOnlyDictionary<string, string>?)”

Creates a tenant invitation delivery retry descriptor.

public TenantInvitationDeliveryRetryDescriptor(string retryId, string tenantId, string invitationId, string? channel, string? senderId, string? source, string? actor, string? correlationId, bool recordDelivery, string status, int attemptCount, int maxAttempts, DateTimeOffset createdAtUtc, DateTimeOffset nextAttemptAtUtc, DateTimeOffset? lastAttemptAtUtc, string? lastOutcome, string? lastReason, IReadOnlyDictionary<string, string>? metadata = null)

retryId string

The stable retry entry identifier.

tenantId string

The tenant identifier that owns the invitation.

invitationId string

The invitation identifier to retry.

channel string?

The delivery channel to retry.

senderId string?

The sender identifier to retry when specified.

source string?

The source recorded on the next retry attempt.

actor string?

The actor recorded on the next retry attempt.

correlationId string?

The correlation identifier retained for retry attempts.

recordDelivery bool

A value indicating whether retry attempts should record delivery metadata.

status string

The retry entry status.

attemptCount int

The number of dispatch attempts represented by this entry, including the original failed attempt.

maxAttempts int

The maximum number of dispatch attempts allowed for this entry.

createdAtUtc DateTimeOffset

The UTC timestamp when the retry entry was created.

nextAttemptAtUtc DateTimeOffset

The UTC timestamp when the next attempt is due.

lastAttemptAtUtc DateTimeOffset?

The UTC timestamp of the latest dispatch attempt.

lastOutcome string?

The latest delivery dispatch outcome.

lastReason string?

The latest delivery dispatch reason.

metadata IReadOnlyDictionary<string, string>?

Optional retry metadata.

Gets the actor recorded on retry attempts.

public string? Actor { get; }

string?

Gets the number of dispatch attempts represented by this entry.

public int AttemptCount { get; }

int

Gets the delivery channel to retry.

public string Channel { get; }

string

Gets the correlation identifier retained for retry attempts.

public string? CorrelationId { get; }

string?

Gets the UTC timestamp when the retry entry was created.

public DateTimeOffset CreatedAtUtc { get; }

DateTimeOffset

Gets the invitation identifier to retry.

public string InvitationId { get; }

string

Gets the UTC timestamp of the latest dispatch attempt.

public DateTimeOffset? LastAttemptAtUtc { get; }

DateTimeOffset?

Gets the latest delivery dispatch outcome.

public string? LastOutcome { get; }

string?

Gets the latest delivery dispatch reason.

public string? LastReason { get; }

string?

Gets the maximum number of dispatch attempts allowed for this entry.

public int MaxAttempts { get; }

int

Gets optional retry metadata.

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

IReadOnlyDictionary<string, string>

Gets the UTC timestamp when the next attempt is due.

public DateTimeOffset NextAttemptAtUtc { get; }

DateTimeOffset

Gets a value indicating whether retry attempts should record delivery metadata.

public bool RecordDelivery { get; }

bool

Gets the stable retry entry identifier.

public string RetryId { get; }

string

Gets the sender identifier to retry when specified.

public string? SenderId { get; }

string?

Gets the source recorded on retry attempts.

public string? Source { get; }

string?

Gets the retry entry status.

public string Status { get; }

string

Gets the tenant identifier that owns the invitation.

public string TenantId { get; }

string

WithRetryState(string, int, DateTimeOffset, DateTimeOffset?, string?, string?, IReadOnlyDictionary<string, string>?)

Section titled “ WithRetryState(string, int, DateTimeOffset, DateTimeOffset?, string?, string?, IReadOnlyDictionary<string, string>?)”

Creates a copy of this retry entry with updated retry state.

public TenantInvitationDeliveryRetryDescriptor WithRetryState(string status, int attemptCount, DateTimeOffset nextAttemptAtUtc, DateTimeOffset? lastAttemptAtUtc, string? lastOutcome, string? lastReason, IReadOnlyDictionary<string, string>? metadata = null)

status string

The updated status.

attemptCount int

The updated attempt count.

nextAttemptAtUtc DateTimeOffset

The updated next-attempt timestamp.

lastAttemptAtUtc DateTimeOffset?

The updated last-attempt timestamp.

lastOutcome string?

The updated latest outcome.

lastReason string?

The updated latest reason.

metadata IReadOnlyDictionary<string, string>?

The updated metadata.

TenantInvitationDeliveryRetryDescriptor

The updated retry descriptor.