From 5b0537a04a8c5a709adac359b4a657efbf5abd8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Ko=C5=BEelj?= Date: Fri, 20 Jan 2023 13:56:03 +0100 Subject: [PATCH] Pass base configuration to WebApplication Instance builder --- src/Connected.Instance/Instance.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Connected.Instance/Instance.cs b/src/Connected.Instance/Instance.cs index f900cf5..a4014a9 100644 --- a/src/Connected.Instance/Instance.cs +++ b/src/Connected.Instance/Instance.cs @@ -13,7 +13,10 @@ namespace Connected.Instance var options = new WebApplicationOptions(); config.Bind(options); - var builder = WebApplication.CreateBuilder(options); + var builder = WebApplication + .CreateBuilder(options); + + builder.Configuration.AddConfiguration(config); var startups = Assemblies.QueryImplementations();