Skip to main content
Table of Contents

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

Id Guid

The identity of the recorded command.

Envelope CommandEnvelope

The serialised command and the session it was dispatched under.

AggregateId Guid?

The aggregate the command names, or null for one that names none.

Heavy bool

Whether the command declared itself long-running.

AttemptCount int

How often it has been handed over since it was recorded or returned.

LastHandedOverAt DateTimeOffset?

When it was last handed over, or null if never.

LastFailure string

The 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

int

Envelope

The serialised command and the session it was dispatched under.

public CommandEnvelope Envelope { get; init; }

Property Value

CommandEnvelope

Heavy

Whether the command declared itself long-running.

public bool Heavy { get; init; }

Property Value

bool

Id

The identity of the recorded command.

public Guid Id { get; init; }

Property Value

Guid

LastFailure

The failure of its last attempt, if one was recorded.

public string? LastFailure { get; init; }

Property Value

string

LastHandedOverAt

When it was last handed over, or null if never.

public DateTimeOffset? LastHandedOverAt { get; init; }

Property Value

DateTimeOffset?