© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
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#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
❔ Options Pattern for injecting configuration
C
C# / help
3y ago
Unit Testing in Minimal Apis
C
C# / help
11mo ago
Async await in minimal API
C
C# / help
2y ago
✅ Generic DI in minimal APIs
C
C# / help
3y ago