Skip to content

IPipelineBehavior

Defined in: packages/pipeline/src/interfaces/pipeline.behavior.interface.ts:18

Interface every pipeline behavior must implement. Works for command handlers, query handlers, AND event handlers.

Sagas don’t need wrapping — they are reactive stream factories. Any commands a saga emits will flow through the CommandBus and hit the pipeline of the target command handler automatically.

TRequest = unknown

TResponse = unknown

handle(context, next): Promise<TResponse>

Defined in: packages/pipeline/src/interfaces/pipeline.behavior.interface.ts:19

IPipelineContext<TRequest, TResponse>

NextDelegate<TResponse>

Promise<TResponse>