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

PipelineModule

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

Defined in: packages/nestjs/src/pipeline/pipeline.module.ts:34

Runs the @nestjs/cqrs handlers through their @cqrs-ddd/pipeline pipelines. It places the global behaviors and the context sources; the behavior instances are providers of the modules that configure them, under their behavior class.

@Module({
imports: [
PipelineModule.forRoot({
sources: contextSources,
globalBehaviors: [{ scope: 'all', before: [logging()] }],
}),
],
providers: [
{ provide: LoggingBehavior, useFactory: () => new LoggingBehavior(new Logger('Pipeline')) },
],
})
export class ObservabilityModule {}

new PipelineModule(): PipelineModule

PipelineModule

static forRoot(options?): DynamicModule

Defined in: packages/nestjs/src/pipeline/pipeline.module.ts:35

PipelineOptions = {}

DynamicModule