Registration information for a startup class

interface StartupRegistration {
    constructor: (new (...args) => IStartupSink);
    getInstance: (() => IStartupSink);
    loadDurationMs?: number;
    loadedAt?: Date;
    options: RegisterForStartupOptions;
}

Properties

constructor: (new (...args) => IStartupSink)

The constructor function of the registered class

Type declaration

getInstance: (() => IStartupSink)

Function to get the singleton instance of the class

Type declaration

loadDurationMs?: number

How long the HandleStartup() call took in milliseconds

loadedAt?: Date

When the class was successfully loaded (undefined if not yet loaded)

Options provided to the decorator