Μετάβαση στο περιεχόμενο
Από την έκδοση 0.5.0 τα πακέτα συνεχίζουν ως @cqrs-ddd, με τεκμηρίωση στο aristoteliss.github.io/ddd-cqrs· οι εφαρμογές NestJS προσθέτουν το @cqrs-ddd/nestjs. Αυτός ο ιστότοπος τεκμηριώνει τη σειρά 0.4.x.

IdempotencyPrincipalFactory

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

IdempotencyPrincipalFactory = (context) => string | readonly string[] | undefined

Defined in: packages/pipeline-idempotency/src/helpers/partitioned-key.ts:20

Resolves the principal performing an operation.

Return one identifier, or several segments when the identity has more than one dimension — for example ['service', clientId], so a service and a user that share an id string never share a namespace. Read it from authenticated context, never from a request body field the caller controls.

IPipelineContext

string | readonly string[] | undefined