Skip to content

Improve error message for TypedHttpClient missing constructor parameter#108670

Merged
CarnaViire merged 5 commits into
dotnet:mainfrom
andrewjsaid:addhttpclient-exception-message
Oct 17, 2024
Merged

Improve error message for TypedHttpClient missing constructor parameter#108670
CarnaViire merged 5 commits into
dotnet:mainfrom
andrewjsaid:addhttpclient-exception-message

Conversation

@andrewjsaid

Copy link
Copy Markdown
Contributor

fixes #104386 as suggested by @CarnaViire

@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Oct 8, 2024
@CarnaViire

Copy link
Copy Markdown
Member

Thanks @andrewjsaid!
I will look into this shortly.

@CarnaViire CarnaViire left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor remarks, but looks good in general, thanks @andrewjsaid!

Comment thread src/libraries/Microsoft.Extensions.Http/src/Resources/Strings.resx Outdated
Comment thread src/libraries/Microsoft.Extensions.Http/src/Resources/Strings.resx Outdated
Comment thread src/libraries/Microsoft.Extensions.Http/src/Resources/Strings.resx Outdated
@andrewjsaid

Copy link
Copy Markdown
Contributor Author

Thank you for the nuanced and thoughtful review. I've addressed your comments.

…ions.Http.Tests/DependencyInjection/HttpClientFactoryServiceCollectionExtensionsTest.cs

@CarnaViire CarnaViire left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! :shipit:

@CarnaViire CarnaViire merged commit d8aadb1 into dotnet:main Oct 17, 2024
@andrewjsaid andrewjsaid deleted the addhttpclient-exception-message branch October 17, 2024 16:46
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Extensions-HttpClientFactory community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error message for missing service registration is misleading when using AddHttpClient<>

2 participants