Skip to content

refactor(http): use IHttpClientFactory for ProductsService and fix …#5

Open
9Queens wants to merge 1 commit into
Accepted-GR:mainfrom
9Queens:main
Open

refactor(http): use IHttpClientFactory for ProductsService and fix …#5
9Queens wants to merge 1 commit into
Accepted-GR:mainfrom
9Queens:main

Conversation

@9Queens

@9Queens 9Queens commented Jul 5, 2026

Copy link
Copy Markdown

…DI config

  • Replace per-instance HttpClient with typed HttpClient via IHttpClientFactory
  • Remove BuildServiceProvider anti-pattern; accept IConfiguration in DefaultConfiguration
  • Inject HttpClient into ProductsService and make JSON deserialization null-safe with logging
  • Pass builder.Configuration into registration calls in Program.cs

…I config

- Replace per-instance HttpClient with typed HttpClient via IHttpClientFactory
- Remove BuildServiceProvider anti-pattern; accept IConfiguration in DefaultConfiguration
- Inject HttpClient into ProductsService and make JSON deserialization null-safe with logging
- Pass builder.Configuration into registration calls in Program.cs
@9Queens

9Queens commented Jul 5, 2026

Copy link
Copy Markdown
Author

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant