Table of Contents

Class OutboxEntry

Namespace
Xapi.Client.Outbox
Assembly
Xapi.Client.Outbox.dll

A Statement waiting in an outbox, with its delivery history.

public sealed record OutboxEntry : IEquatable<OutboxEntry>
Inheritance
OutboxEntry
Implements
Inherited Members

Constructors

OutboxEntry(Statement, DateTimeOffset)

Creates an entry.

public OutboxEntry(Statement statement, DateTimeOffset enqueuedAt)

Parameters

statement Statement

The Statement. It must have an id, which identifies the entry.

enqueuedAt DateTimeOffset

When the Statement was added to the outbox.

Exceptions

ArgumentException

statement has no id.

Properties

Attempts

How many sends of this Statement failed with a transient error.

public int Attempts { get; init; }

Property Value

int

EnqueuedAt

When the Statement was added to the outbox.

public DateTimeOffset EnqueuedAt { get; }

Property Value

DateTimeOffset

LastError

The error of the last failed send, if any.

public string? LastError { get; init; }

Property Value

string

Statement

The Statement, exactly as it will be sent.

public Statement Statement { get; }

Property Value

Statement

StatementId

The Statement id, which identifies the entry in the store.

public Guid StatementId { get; }

Property Value

Guid