Table of Contents

Interface IDispatchDocument

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

Represents a document-style message that contains structured data for processing.

public interface IDispatchDocument : IDispatchMessage
Extension Methods

Remarks

Document messages are used for transferring larger, self-contained data structures through the messaging pipeline. Unlike events or actions, documents typically represent complete business entities or data transfer objects. Common use cases include:

  • Batch processing of records
  • ETL (Extract, Transform, Load) operations
  • Import/export of complex data structures
  • Document-oriented workflows (e.g., invoice processing, report generation)
  • Transferring snapshots of aggregate state

Documents may be processed by multiple handlers for different aspects of the data (validation, transformation, storage, etc.) and support both synchronous and asynchronous processing patterns.