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

Use a singleton HttpClient for remote app communication #231

Merged
merged 2 commits into from
Oct 21, 2022
Merged

Conversation

mjrousos
Copy link
Member

Updates remote app communication to use a singleton HttpClient instance (stored in RemoteAppClientOptions) rather than getting new clients from IHttpClientFactory for each request. This addresses an issue where HTTP handlers provided by users were being disposed and then reused by the factory previously.

Fixes #221

@mjrousos mjrousos requested a review from Tratcher October 20, 2022 21:21
@mjrousos mjrousos merged commit 9ebda3e into main Oct 21, 2022
@mjrousos mjrousos deleted the mjrousos/221 branch October 21, 2022 20:46
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.

RemoteAppClientOptions.BackchannelHandler should be a factory method
2 participants