Datalayer Desktop - v0.0.2
    Preparing search index...

    Default implementation of the service container. Provides lazy initialization of services with proper dependency injection.

    const container = new ServiceContainer(sdk);
    await container.initialize();

    // Use services
    await container.authService.login(runUrl, token);
    const runtime = await container.runtimeService.createRuntime('notebook-1');

    Implements

    Index

    Constructors

    Properties

    _authService?: IAuthService
    _environmentService?: IEnvironmentService
    _logger?: ILogger
    _loggerManager?: ILoggerManager
    _runtimeService?: IRuntimeService
    _state: ServiceState = ServiceState.Uninitialized
    sdk: DatalayerClient

    Accessors

    Methods

    • Initializes core services needed during app startup. Only initializes logging - other services are lazy.

      Performance: This method is optimized to initialize only what's needed during app startup. Domain services are deferred until first use.

      Returns Promise<void>