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.
Type Parameters
Section titled “Type Parameters”TRequest
Section titled “TRequest”TRequest = unknown
TResponse
Section titled “TResponse”TResponse = unknown
Methods
Section titled “Methods”handle()
Section titled “handle()”handle(
context,next):Promise<TResponse>
Defined in: packages/pipeline/src/interfaces/pipeline.behavior.interface.ts:19
Parameters
Section titled “Parameters”context
Section titled “context”IPipelineContext<TRequest, TResponse>
NextDelegate<TResponse>
Returns
Section titled “Returns”Promise<TResponse>