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:
Elliot Huffman 2022-02-04 10:57:10 -05:00
Родитель ed0ccf9102
Коммит ed183db208
2 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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");