createHandlerRunner
Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.
createHandlerRunner(
binding):PipelineRunner
Defined in: packages/pipeline/src/services/pipeline-setup.ts:195
Binds a handler method to its compiled pipeline: validates the behavior contracts, reports the chain, and returns the runner the bus or the adapter calls per request.
Parameters
Section titled “Parameters”binding
Section titled “binding”behaviors
Section titled “behaviors”readonly IPipelineBehavior<unknown, unknown>[]
The instances of plan.behaviorTypes, in order.
diagnostics?
Section titled “diagnostics?”Receives contract violations; absent, none are checked.
handlerType
Section titled “handlerType”(message) => void
Receives one line naming the chain, when the handler has one.
method
Section titled “method”(this, …args) => unknown
The handler’s execute or handle; its name is logged.
{ behaviorTypes: Constructor<IPipelineBehavior<unknown, unknown>>[]; globalBehaviorIds: Set<BehaviorId>; globalOptions: Map<BehaviorId, Record<string, unknown>>; handlerBehaviorTypes: Constructor<IPipelineBehavior<unknown, unknown>>[] | undefined; handlerOptions: Map<BehaviorId, Record<string, unknown>> | undefined; hasPipeline: boolean; mergedOptions: Map<BehaviorId, Record<string, unknown>>; }
plan.behaviorTypes
Section titled “plan.behaviorTypes”Constructor<IPipelineBehavior<unknown, unknown>>[]
plan.globalBehaviorIds
Section titled “plan.globalBehaviorIds”plan.globalOptions
Section titled “plan.globalOptions”Map<BehaviorId, Record<string, unknown>> = globals.globalOptions
plan.handlerBehaviorTypes
Section titled “plan.handlerBehaviorTypes”Constructor<IPipelineBehavior<unknown, unknown>>[] | undefined
plan.handlerOptions
Section titled “plan.handlerOptions”Map<BehaviorId, Record<string, unknown>> | undefined
plan.hasPipeline
Section titled “plan.hasPipeline”boolean = ...
plan.mergedOptions
Section titled “plan.mergedOptions”Map<BehaviorId, Record<string, unknown>>