From d2d1f66cf6ca2c9d50b98c522e6b214aa250b6f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Ko=C5=BEelj?= Date: Tue, 17 Jan 2023 15:38:39 +0100 Subject: [PATCH] [WIP] Switch configuration service to use standard configuration stores --- src/Connected.Configuration/ConfigurationService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Connected.Configuration/ConfigurationService.cs b/src/Connected.Configuration/ConfigurationService.cs index 6f7062c..e2b0e68 100644 --- a/src/Connected.Configuration/ConfigurationService.cs +++ b/src/Connected.Configuration/ConfigurationService.cs @@ -1,14 +1,18 @@ using Connected.Configuration.Authentication; using Connected.Configuration.Endpoints; +using Microsoft.Extensions.Configuration; namespace Connected.Configuration; internal class ConfigurationService : IConfigurationService { - public ConfigurationService() + public ConfigurationService(IConfiguration configuration) { Endpoint = new EndpointConfiguration(); + configuration.Bind("endpoint", Endpoint); + Storage = new StorageConfiguration(); + configuration.Bind("storage", Storage); } public IEndpointConfiguration Endpoint { get; }