Skip to content

DI Bag API / index / AcquisitionSnapshot

Interface: AcquisitionSnapshot<A extends readonly unknown[] = readonly []> ​

Defined in: inspection.ts:22

A frozen point-in-time view of one acquisition attempt.

See ​

https://dany-fedorov.github.io/di-bag/guides/tutorial.html#attach-metadata-and-inspect-without-resolving

Type Parameters ​

Type ParameterDescription
A-

Properties ​

acquisitionId ​

ts
readonly acquisitionId: symbol;

Defined in: inspection.ts:24

Stable identity for this attempt; retries receive a new symbol.


acquisitionMetadata ​

ts
readonly acquisitionMetadata: AcquisitionMetadataPresence<A>;

Defined in: inspection.ts:28

Ordered presence records for metadata captured during acquisition.


state ​

ts
readonly state: 'creating' | 'pending' | 'ready' | 'failed' | 'disposing' | 'disposed';

Defined in: inspection.ts:26

State at the instant the snapshot was copied.

Ordinary services. Checked composition. Explicit ownership.