Skip to content

PipelineBehaviorValidationContext

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

Inspection context provided to behavior contract validators before the first execution: when a function is wrapped, or when an adapter starts.

optional behaviorInstance?: IPipelineBehavior<unknown, unknown>

Defined in: packages/pipeline/src/interfaces/pipeline-behavior-contract.interface.ts:41

The behavior instance, when one exists before the first execution.


declarationSource: "handler" | "global" | "both"

Defined in: packages/pipeline/src/interfaces/pipeline-behavior-contract.interface.ts:31

Source where this behavior was declared for the current handler:

  • 'handler': declared at the call site, such as pipeline.wrap(options, ...entries).
  • 'global': declared globally, such as createPipeline({ globalBehaviors }).
  • 'both': declared globally and also customized at the call site.

effectiveBehaviorTypes: readonly Constructor<IPipelineBehavior<unknown, unknown>>[]

Defined in: packages/pipeline/src/interfaces/pipeline-behavior-contract.interface.ts:39

Complete ordered list of effective behavior classes active for this handler.


effectiveOptions: Record<string, unknown> | undefined

Defined in: packages/pipeline/src/interfaces/pipeline-behavior-contract.interface.ts:33

Effective options for resolved singletons; raw handler/global options for scoped behaviors.


globalOptions: Record<string, unknown> | undefined

Defined in: packages/pipeline/src/interfaces/pipeline-behavior-contract.interface.ts:37

Raw options declared globally, if any.


handlerName: string

Defined in: packages/pipeline/src/interfaces/pipeline-behavior-contract.interface.ts:22

The name of the CQRS handler.


handlerOptions: Record<string, unknown> | undefined

Defined in: packages/pipeline/src/interfaces/pipeline-behavior-contract.interface.ts:35

Raw options declared on the handler, if any.


handlerType: Constructor

Defined in: packages/pipeline/src/interfaces/pipeline-behavior-contract.interface.ts:20

The CQRS handler class.


requestKind: "command" | "query" | "event"

Defined in: packages/pipeline/src/interfaces/pipeline-behavior-contract.interface.ts:24

The request kind of the handler (‘command’ | ‘query’ | ‘event’).