© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
2 replies
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
 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?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Options Pattern for injecting configuration
C#CC# / help
3y ago
Unit Testing in Minimal Apis
C#CC# / help
11mo ago
Async await in minimal API
C#CC# / help
2y ago
✅ Generic DI in minimal APIs
C#CC# / help
3y ago