From 67261fe568d33c80d99c586b8ce700e716442cfd Mon Sep 17 00:00:00 2001 From: Maitland Marshall Date: Wed, 6 Sep 2023 04:04:25 +1000 Subject: [PATCH] get config from env vars --- MIFCore.Common/MIFCore.Common.csproj | 1 + .../Settings/SettingsConfigurationBuilderExtensions.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/MIFCore.Common/MIFCore.Common.csproj b/MIFCore.Common/MIFCore.Common.csproj index 3647322..6a55113 100644 --- a/MIFCore.Common/MIFCore.Common.csproj +++ b/MIFCore.Common/MIFCore.Common.csproj @@ -22,6 +22,7 @@ + diff --git a/MIFCore.Common/Settings/SettingsConfigurationBuilderExtensions.cs b/MIFCore.Common/Settings/SettingsConfigurationBuilderExtensions.cs index a0556b4..fee9686 100644 --- a/MIFCore.Common/Settings/SettingsConfigurationBuilderExtensions.cs +++ b/MIFCore.Common/Settings/SettingsConfigurationBuilderExtensions.cs @@ -15,6 +15,8 @@ public static IConfigurationBuilder UseSettingsFile(this IConfigurationBuilder b .AddJsonFile("settings.json", optional: false) .AddJsonFile("settings.default.json", optional: true); + builder.AddEnvironmentVariables(); + return builder; }