From 372afe249c21f35613959a6c6dcf15c635ef3710 Mon Sep 17 00:00:00 2001 From: Shawn Jackson Date: Thu, 29 Aug 2024 13:39:07 -0700 Subject: [PATCH] CU-3wen6jw fixing worker issue --- Tools/Resgrid.Console/Program.cs | 2 ++ Workers/Resgrid.Workers.Console/Program.cs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Tools/Resgrid.Console/Program.cs b/Tools/Resgrid.Console/Program.cs index 255724cc..d1581db8 100644 --- a/Tools/Resgrid.Console/Program.cs +++ b/Tools/Resgrid.Console/Program.cs @@ -110,6 +110,8 @@ private static void SetConnectionString() System.Configuration.ConfigurationManager.RefreshSection("connectionStrings"); collection.SetValue(settings, true); element.SetValue(settings, true); + + ConfigProcessor.LoadAndProcessEnvVariables(Configuration.AsEnumerable()); } } } diff --git a/Workers/Resgrid.Workers.Console/Program.cs b/Workers/Resgrid.Workers.Console/Program.cs index 2daad860..06a4c067 100644 --- a/Workers/Resgrid.Workers.Console/Program.cs +++ b/Workers/Resgrid.Workers.Console/Program.cs @@ -184,6 +184,8 @@ private static void SetConnectionString() System.Configuration.ConfigurationManager.RefreshSection("connectionStrings"); collection.SetValue(settings, true); element.SetValue(settings, true); + + ConfigProcessor.LoadAndProcessEnvVariables(Configuration.AsEnumerable()); } }