Skip to content

DI Bag API / index / ContainerEventFields

Interface: ContainerEventFields ​

Defined in: observers.ts:9

Identity shared by lifecycle events for one owning container.

See ​

https://dany-fedorov.github.io/di-bag/guides/tutorial.html#observe-lifecycle-transitions

Properties ​

containerId ​

ts
readonly containerId: symbol;

Defined in: observers.ts:11

The container that owns the transition.


parentContainerId? ​

ts
readonly parentContainerId?: symbol;

Defined in: observers.ts:13

The tracked parent, present only for child-container events.

Ordinary services. Checked composition. Explicit ownership.