Class InMemoryDeadLetterSink
- Namespace
- JD.AI.Workflows.Distributed.InMemory
- Assembly
- JD.AI.Workflows.Distributed.dll
In-memory dead-letter sink that retains failed items in memory for inspection.
public sealed class InMemoryDeadLetterSink : IDeadLetterSink
- Inheritance
-
InMemoryDeadLetterSink
- Implements
- Inherited Members
Properties
Items
All dead-lettered items in insertion order.
public IReadOnlyList<DeadLetteredItem> Items { get; }
Property Value
Methods
DeadLetterAsync(WorkflowWorkItem, string, Exception?, CancellationToken)
Records a dead-lettered item with its reason.
public Task DeadLetterAsync(WorkflowWorkItem item, string reason, Exception? exception = null, CancellationToken ct = default)
Parameters
itemWorkflowWorkItemreasonstringexceptionExceptionctCancellationToken