JobContextModule
Αυτό το περιεχόμενο δεν είναι ακόμη διαθέσιμο στη γλώσσα σου.
Defined in: packages/nestjs/src/job-context.ts:70
Lets the jobs a request enqueues carry its tenant, correlation id and
principal (withJobContext), and restores them in processors
(@InJobContext()): registers the application’s job principal, tenants and
context sources with @cqrs-ddd/pipeline-job-context when the module starts,
and unregisters them on shutdown.
Example
Section titled “Example”@Module({ imports: [ JobContextModule.forRoot({ imports: [AuthsModule], principal: SessionJobPrincipal, tenants: () => persistenceConfig().tenants, sources: { tenantId: tenantSource, correlationId: correlationSource }, }), ],})export class AppModule {}Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new JobContextModule():
JobContextModule
Returns
Section titled “Returns”JobContextModule
Methods
Section titled “Methods”forRoot()
Section titled “forRoot()”
staticforRoot(options):DynamicModule
Defined in: packages/nestjs/src/job-context.ts:71
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”DynamicModule