Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core: Use an HttpClient singleton to prevent unnecessary disposal #57

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

goodtrailer
Copy link
Owner

Fixes #55.

The API here is a bit... weird. Can't decide on whether or not to add IProviderExtensions.ConfigureHttpRequestHeaders that calls HttpUtils.ResetRequestHeaders and doesn't take in any parameters. It seems simpler but not really in-line with the API of IProviderExtensions.ConfigureWallpaperAsync (or any Configure methods). I think it's fine for now.

@goodtrailer goodtrailer self-assigned this Apr 3, 2023
@pull-request-size pull-request-size bot added the size/L 100–499 lines label Apr 3, 2023
@goodtrailer goodtrailer merged commit 50da0f8 into main Apr 3, 2023
@goodtrailer goodtrailer deleted the static-http-client branch April 3, 2023 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working project/core project/providers size/L 100–499 lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Core: Don't using (var client = new HttpClient())
1 participant