Class OutboxEntry
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
statementStatementThe Statement. It must have an id, which identifies the entry.
enqueuedAtDateTimeOffsetWhen the Statement was added to the outbox.
Exceptions
- ArgumentException
statementhas no id.
Properties
Attempts
How many sends of this Statement failed with a transient error.
public int Attempts { get; init; }
Property Value
EnqueuedAt
When the Statement was added to the outbox.
public DateTimeOffset EnqueuedAt { get; }
Property Value
LastError
The error of the last failed send, if any.
public string? LastError { get; init; }
Property Value
Statement
The Statement, exactly as it will be sent.
public Statement Statement { get; }
Property Value
StatementId
The Statement id, which identifies the entry in the store.
public Guid StatementId { get; }