UsePipeline
Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.
UsePipeline(…
entries):DualClassDecorator
Defined in: packages/pipeline/src/handler-pipeline.ts:57
Declares the behaviors that run around a handler, outermost first: behavior classes or
[Behavior, options] tuples such as cache({ key }). The global behaviors wrap these;
a behavior declared in both runs once, at its global position, with these options
merged over the global ones. The handler runtime reads the declaration with
pipelineOf.
Parameters
Section titled “Parameters”entries
Section titled “entries”Returns
Section titled “Returns”Throws
Section titled “Throws”TypeError on a malformed entry.
Example
Section titled “Example”@CommandHandler(CreateUserCommand)@UsePipeline(idempotent({ keyFactory }), audit({ action: 'user.create' }))class CreateUserHandler implements ICommandHandler<CreateUserCommand> { async execute(command: CreateUserCommand) {}}