Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Question regarding multiple calls to AddHttpClient() - C#
C
C#
•
2y ago
•
10 replies
Eple
Question regarding multiple calls to AddHttpClient()
I have a class library that calls this
:
services.AddHttpClient();
services.AddHttpClient();
Then the main project calls this
:
builder.Services.AddHttpClient();
builder.Services.AddHttpClient();
Can it cause any issues
?
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
Similar Threads
✅ AddHttpClient and AddHostedService
C
C# / help
2y ago
Question regarding tasks
C
C# / help
2y ago
✅ Question regarding EntityFramework
C
C# / help
3y ago
Question regarding thread safety
C
C# / help
2y ago