Class RecordedIntent
- Namespace
- Stratara.Abstractions.Outbox
- Assembly
- Stratara.Abstractions.dll
A recorded command as an ICommandIntentStore returns it for resumption.
[ExcludeFromCodeCoverage]
public sealed record RecordedIntent : IEquatable<RecordedIntent>
- Inheritance
-
RecordedIntent
- Implements
- Inherited Members
- Extension Methods
Constructors
RecordedIntent(Guid, CommandEnvelope, Guid?, bool, int, DateTimeOffset?, string?)
A recorded command as an ICommandIntentStore returns it for resumption.
public RecordedIntent(Guid Id, CommandEnvelope Envelope, Guid? AggregateId, bool Heavy, int AttemptCount, DateTimeOffset? LastHandedOverAt, string? LastFailure)
Parameters
IdGuidThe identity of the recorded command.
EnvelopeCommandEnvelopeThe serialised command and the session it was dispatched under.
AggregateIdGuid?The aggregate the command names, or null for one that names none.
HeavyboolWhether the command declared itself long-running.
AttemptCountintHow often it has been handed over since it was recorded or returned.
LastHandedOverAtDateTimeOffset?When it was last handed over, or null if never.
LastFailurestringThe failure of its last attempt, if one was recorded.
Properties
AggregateId
The aggregate the command names, or null for one that names none.
public Guid? AggregateId { get; init; }
Property Value
- Guid?
AttemptCount
How often it has been handed over since it was recorded or returned.
public int AttemptCount { get; init; }
Property Value
Envelope
The serialised command and the session it was dispatched under.
public CommandEnvelope Envelope { get; init; }
Property Value
Heavy
Whether the command declared itself long-running.
public bool Heavy { get; init; }
Property Value
Id
The identity of the recorded command.
public Guid Id { get; init; }
Property Value
LastFailure
The failure of its last attempt, if one was recorded.
public string? LastFailure { get; init; }
Property Value
LastHandedOverAt
When it was last handed over, or null if never.
public DateTimeOffset? LastHandedOverAt { get; init; }