Table of Contents

Interface ISaga<TSagaState>

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

Extends the basic saga contract with strongly-typed access to saga state. This generic interface provides type-safe access to saga state while maintaining compatibility with the base saga infrastructure.

public interface ISaga<out TSagaState> : ISaga where TSagaState : SagaState

Type Parameters

TSagaState

The type of state maintained by this saga, must inherit from SagaState.

Inherited Members
Extension Methods

Remarks

The generic saga interface enables strongly-typed saga implementations while preserving the ability to work with sagas polymorphically through the base interface. This design supports both type-safe saga development and flexible saga management within the orchestration infrastructure.

Properties

State

Gets the current state of the saga, providing typed access to saga-specific data and process tracking information maintained throughout the saga's lifecycle.

TSagaState State { get; }

Property Value

TSagaState

The current state instance of type TSagaState containing all data and status information for this saga's business process.

Remarks

The saga state encapsulates all information needed to track the business process, including progress indicators, accumulated data, error states, and correlation information. State changes are typically coordinated through event handling and persist across saga lifecycle boundaries to enable process recovery and consistency.