Skip to main content
zerotal

Documentation


Documentation / @zerotal/core / index / AppBooted

Class: AppBooted

Defined in: events/FrameworkEvents.ts:155

Emitted once when the application finishes booting — all providers registered and booted and conventions wired. durationMs is the wall-clock boot time, so observers (Health page, telemetry, logger) can surface startup cost.

Example

FrameworkEvents.on(AppBooted, (e) => {
  console.log(`booted in ${e.durationMs}ms (${e.providerCount} providers)`);
});

Constructors

Constructor

new AppBooted(durationMs, environment, providerCount): AppBooted

Defined in: events/FrameworkEvents.ts:156

Parameters

durationMs

number

environment

string

Application environment, e.g. "web" | "worker" | "console" | "test" | "repl".

providerCount

number

Number of active service providers that booted.

Returns

AppBooted

Properties

durationMs

readonly durationMs: number

Defined in: events/FrameworkEvents.ts:157


environment

readonly environment: string

Defined in: events/FrameworkEvents.ts:159

Application environment, e.g. "web" | "worker" | "console" | "test" | "repl".


providerCount

readonly providerCount: number

Defined in: events/FrameworkEvents.ts:161

Number of active service providers that booted.