Skip to content

ambiten


ambiten / core / configureAmbitenContext

Function: configureAmbitenContext()

configureAmbitenContext(provider): void

Defined in: packages/core/src/utils/configureAmbitenContext.ts:15

Configures the Ambiten runtime context with a transaction client resolver.

The resolver is used by AmbitenContext.withTransaction to obtain the correct MongoDB client for the current runtime scope. Tenant-specific clients are resolved first when a tenant identifier is available; otherwise the configured provider client factory is used.

Parameters

provider

BootstrapClient

Bootstrap client/provider used to resolve MongoDB clients.

Returns

void

Context-aware execution infrastructure for multi-tenant systems.