Table of Contents

Interface IMessageProcessingFeature

Namespace
Excalibur.Dispatch.Features
Assembly
Excalibur.Dispatch.Abstractions.dll

Feature interface for message processing state tracked across retries and redeliveries.

public interface IMessageProcessingFeature
Extension Methods

Remarks

Access via context.Features dictionary keyed by typeof(IMessageProcessingFeature), or use the GetProcessingFeature(IMessageContext) extension method.

Properties

DeliveryCount

Gets or sets the number of times this message has been delivered.

int DeliveryCount { get; set; }

Property Value

int

The number of delivery attempts.

FirstAttemptTime

Gets or sets the timestamp of the first processing attempt.

DateTimeOffset? FirstAttemptTime { get; set; }

Property Value

DateTimeOffset?

The timestamp of the first processing attempt, or null if not yet processed.

IsRetry

Gets or sets a value indicating whether this is a retry attempt.

bool IsRetry { get; set; }

Property Value

bool

true if this is a retry; otherwise, false.

ProcessingAttempts

Gets or sets the number of processing attempts for this message.

int ProcessingAttempts { get; set; }

Property Value

int

The number of processing attempts (0 for first attempt).