Μετάβαση στο περιεχόμενο

createPipelineRunner

Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.

createPipelineRunner(originalMethod, meta, behaviors, hasPipeline, sources?): PipelineRunner

Defined in: packages/pipeline/src/services/pipeline-runner.ts:47

Builds the runner of one handler: each call creates a pipeline context, takes the tenant and correlation id from sources or the enclosing pipeline, composes the behaviors around the handler, and runs them inside those values. Framework adapters use it; createPipeline() is the entry point for applications.

(this, …args) => unknown

PipelineHandlerMeta | ((request, self) => PipelineHandlerMeta)

Fixed handler metadata, or a function deriving it from the request and the receiver of the call.

readonly IPipelineBehavior<unknown, unknown>[] | ((self, request) => Promise<IPipelineBehavior<unknown, unknown>[]>)

Resolved instances, or a resolver called per execution (a framework adapter’s request-scoped instances).

boolean

ContextSources = {}

PipelineRunner

const run = createPipelineRunner(handler.execute, meta, [logging], true, sources);
await run(handler, command);