summary refs log tree commit diff
path: root/testFrontend/SafeNSound.Sdk/SafeNSoundConfiguration.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-06-01 04:40:09 +0200
committerRory& <root@rory.gay>2025-06-01 04:40:09 +0200
commita22c00fcefa10a99505c05393106fb3a655de243 (patch)
tree417757b1e5aa9f44702ed963569e0edf6209043d /testFrontend/SafeNSound.Sdk/SafeNSoundConfiguration.cs
parentAdd some tests (diff)
downloadnodejs-final-assignment-a22c00fcefa10a99505c05393106fb3a655de243.tar.xz
Add register with validation
Diffstat (limited to 'testFrontend/SafeNSound.Sdk/SafeNSoundConfiguration.cs')
-rw-r--r--testFrontend/SafeNSound.Sdk/SafeNSoundConfiguration.cs7
1 files changed, 7 insertions, 0 deletions
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