Table of Contents

Delegate AsyncSaga<TState>.StepHandler<TMessage>

Namespace
PatternKit.Messaging.Sagas
Assembly
PatternKit.Core.dll

Async handler used to transition saga state for a typed message.

public delegate ValueTask<TState> AsyncSaga<TState>.StepHandler<TMessage>(TState state, Message<TMessage> message, MessageContext context, CancellationToken cancellationToken)

Parameters

state TState
Async handler used to transition saga state for a typed message.
message Message<TMessage>
Async handler used to transition saga state for a typed message.
context MessageContext
Async handler used to transition saga state for a typed message.
cancellationToken CancellationToken
Async handler used to transition saga state for a typed message.

Returns

ValueTask<TState>
Async handler used to transition saga state for a typed message.

Type Parameters

TMessage