From a22c00fcefa10a99505c05393106fb3a655de243 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sun, 1 Jun 2025 04:40:09 +0200 Subject: Add register with validation --- testFrontend/SafeNSound.Sdk/SafeNSoundConfiguration.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'testFrontend/SafeNSound.Sdk/SafeNSoundConfiguration.cs') diff --git a/testFrontend/SafeNSound.Sdk/SafeNSoundConfiguration.cs b/testFrontend/SafeNSound.Sdk/SafeNSoundConfiguration.cs index d479825..b2aa2c0 100644 --- a/testFrontend/SafeNSound.Sdk/SafeNSoundConfiguration.cs +++ b/testFrontend/SafeNSound.Sdk/SafeNSoundConfiguration.cs @@ -1,6 +1,13 @@ +using Microsoft.Extensions.Configuration; + namespace SafeNSound.Sdk; public class SafeNSoundConfiguration { + public SafeNSoundConfiguration(IConfiguration configuration) + { + configuration.GetRequiredSection("SafeNSound").Bind(this); + } + public string BaseUri { get; set; } = "http://localhost:3000"; } \ No newline at end of file -- cgit 1.5.1