Interface for any singleton class that needs initialization at application startup. Implementing classes must follow the singleton pattern with a static Instance property. Named "Sink" to indicate it receives/handles startup events.

interface IStartupSink {
    HandleStartup(contextUser?, provider?): Promise<void>;
}

Implemented by

Methods

  • Called during application bootstrap to initialize the singleton.

    Parameters

    • Optional contextUser: UserInfo

      The authenticated user context (required for server-side, optional for client-side)

    • Optional provider: IMetadataProvider

      Optional metadata provider to use for initialization

    Returns Promise<void>