Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@derekm
Copy link
Contributor

@derekm derekm commented Nov 4, 2024

What kind of change does this PR introduce?
Adds a test to confirm and conform Refit.HttpClientFactory's AddRefitClient with respect to named HttpClients.

Fixes #1909

What is the current behavior?
AddRefitClient can reuse existing named clients, but it can also reconfigure the named clients' factories.

What is the new behavior?
No new behavior, just a test confirming that existing behavior is to pick up named clients.

What might this PR break?
Nothing

Please check if the PR fulfills these requirements

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Other information:
Docs could be updated further to make it clear that AddRefitClient will use named clients and that you will reconfigure the named client's factory if you use AddRefitClient's returned IHttpClientBuilder (as described in #1686).

@codecov
Copy link

codecov bot commented Nov 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.94%. Comparing base (6ebeda5) to head (1d7ed61).
Report is 161 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1910      +/-   ##
==========================================
- Coverage   87.73%   84.94%   -2.80%     
==========================================
  Files          33       36       +3     
  Lines        2348     2504     +156     
  Branches      294      363      +69     
==========================================
+ Hits         2060     2127      +67     
- Misses        208      299      +91     
+ Partials       80       78       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ChrisPulman ChrisPulman merged commit da64f1f into reactiveui:main Nov 6, 2024
2 of 3 checks passed
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using Named HttpClients with Refit.HttpClientFactory

3 participants