Add Startup Metadata
Add metadata to the config engine class to identify if the app is still starting up or not. true = app is still starting, false = app is finished starting.
This commit is contained in:
Родитель
ed0ccf9102
Коммит
ed183db208
|
@ -63,6 +63,7 @@ export class ConfigurationEngine {
|
|||
scopeTagName: string;
|
||||
configInitialized: boolean;
|
||||
config: CloudSecConfig | undefined;
|
||||
startup: boolean;
|
||||
|
||||
// Initialize the class
|
||||
constructor(graphClient: AppGraphClient) {
|
||||
|
@ -70,6 +71,7 @@ export class ConfigurationEngine {
|
|||
this.graphClient = graphClient;
|
||||
this.configInitialized = false;
|
||||
this.configScratchSpace = {};
|
||||
this.startup = true;
|
||||
|
||||
// Write debug info
|
||||
writeDebugInfo("Initialized standard class properties");
|
||||
|
|
|
@ -69,6 +69,9 @@ if (debugMode === "true") {
|
|||
// Initialize the core business logic routes
|
||||
const lifeCycleRouter = new LifecycleRouter(webServer, graphClient, configEngine);
|
||||
|
||||
// Set the startup indicator as false to indicate that the app is no longer starting up
|
||||
configEngine.startup = false;
|
||||
|
||||
// Start the web server
|
||||
const serverInstance = webServer.listen(port, () => {
|
||||
writeDebugInfo("Running on port: " + port, "Server Started");
|
||||
|
|
Загрузка…
Ссылка в новой задаче