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.
Example
Section titled “Example”@Module({ imports: [ PipelineModule.forRoot({ sources: contextSources, globalBehaviors: [{ scope: 'all', before: [logging()] }], }), ], providers: [ { provide: LoggingBehavior, useFactory: () => new LoggingBehavior(new Logger('Pipeline')) }, ],})export class ObservabilityModule {}Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PipelineModule():
PipelineModule
Returns
Section titled “Returns”PipelineModule
Methods
Section titled “Methods”forRoot()
Section titled “forRoot()”
staticforRoot(options?):DynamicModule
Defined in: packages/nestjs/src/pipeline/pipeline.module.ts:35
Parameters
Section titled “Parameters”options?
Section titled “options?”PipelineOptions = {}
Returns
Section titled “Returns”DynamicModule