You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We want to reuse Named Clients with Refit, mostly to inherit common configuration.
Documentation of AddRefitClient is unclear as to whether previously named clients will be picked up or clobbered.
Describe the solution you'd like
We'd like service collection extensions AddRefitClient to pick up previously configured named clients.
Describe alternatives you've considered
Writing our own possibly-unnecessary version of the AddRefitClient service collection extension.
Describe suggestions on how to achieve the feature
Test that the desired behavior is the present behavior and leave tests behind so this behavior doesn't change.
Additional context
AddRefitClient's client name will pick up a previously configured named client, but since AddRefitClient returns IHttpClientBuilder, you can reconfigure the underlying IHttpClientFactory as described in #1686 while expecting to modify separate clients instead of a shared configurator, builder or factory.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
We want to reuse Named Clients with Refit, mostly to inherit common configuration.
Documentation of AddRefitClient is unclear as to whether previously named clients will be picked up or clobbered.
Describe the solution you'd like
We'd like service collection extensions AddRefitClient to pick up previously configured named clients.
Describe alternatives you've considered
Writing our own possibly-unnecessary version of the AddRefitClient service collection extension.
Describe suggestions on how to achieve the feature
Test that the desired behavior is the present behavior and leave tests behind so this behavior doesn't change.
Additional context
AddRefitClient's client name will pick up a previously configured named client, but since AddRefitClient returns IHttpClientBuilder, you can reconfigure the underlying IHttpClientFactory as described in #1686 while expecting to modify separate clients instead of a shared configurator, builder or factory.
The text was updated successfully, but these errors were encountered: