Table of Contents

Interface ICascade

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

Opt-in marker for a handler result that carries follow-up messages to be cascaded — automatically staged to the outbox for reliable, at-least-once dispatch after the handler completes.

public interface ICascade
Extension Methods

Remarks

A handler opts in to cascading by returning a result that implements this interface; any other result produces no cascade. The signal is the return-type convention (not an attribute) so the cascade step composes with the compile-time pipeline: cascaded messages are enqueued to the same outbox the handler already writes to, inheriting its delivery semantics (atomic when a transactional writer participates in the handler's unit of work, otherwise eventually-consistent at-least-once).

Properties

Messages

Gets the follow-up messages to cascade. An empty list produces no cascade.

IReadOnlyList<IDispatchMessage> Messages { get; }

Property Value

IReadOnlyList<IDispatchMessage>

The messages to stage for dispatch after the handler completes.