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

STU3: Do not dispose of a shared HttpMessageHandler passed into the constructor #2046

Merged
merged 6 commits into from
Apr 20, 2022

Conversation

marcovisserFurore
Copy link
Member

Description

When creating the new HttpClient inside the constructor indicate that if it is a shared MessageHandler and therefore that it should not be disposing it when it is finished with it.
As the change in the common lib has a default parameter this is not a truly breaking change, and in the R4 (version level) functionality the public surface has not changed this is not tagged as a breaking change.

Related issues

Resolves #2029

Testing

The unit test CallsCallbacksHttpClient was used to verify this functionality, as it fails when the fix is not applied.

FirelyTeam Checklist

  • Update the title of the PR to be succinct and less than 50 characters
  • Mark the PR with the label breaking change when this PR introduces breaking changes

marcovisserFurore and others added 4 commits April 20, 2022 13:51
…posed when it is done with it.

# Conflicts:
#	src/Hl7.Fhir.Core.Tests/Rest/FhirClientTests.cs
…sion that includes the default parameter for the disposeHandler (even though we pass it throuth)
@marcovisserFurore marcovisserFurore changed the title Do not dispose of a shared HttpMessageHandler passed into the constructor STU3: Do not dispose of a shared HttpMessageHandler passed into the constructor Apr 20, 2022
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.

HttpMessageHandler Passed To Constructor Of FhirClient Gets Disposed When FhirClient Is Disposed
3 participants