Options for creating a Stratix container with defaults.

interface StratixContainerOptions {
    infrastructure?: boolean;
    environment?: "development" | "production" | "test";
}

Properties

infrastructure?: boolean

Auto-register infrastructure services (buses, logger). Default: false

When true, registers in-memory implementations of:

  • CommandBus
  • QueryBus
  • EventBus

Note: Logger must still be registered separately or via ApplicationBuilder.

environment?: "development" | "production" | "test"

Environment mode for conditional registration. Default: 'development'

Can be used for environment-specific service registration.