C
C#2y ago
voltagex

[solved] Injecting configuration in (minimal) WebAPI

https://git.sr.ht/~voltagex/wherethefile/tree/main/item/src/WhereTheFile.NetworkScanner/Program.cs#L24 How can I make builder.Services.Configure do what I think it should? i.e. when the service is resolved, a configuration object with my configuration is provided? Alternatively, how should I be passing database configuration strings in?
1 Reply