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

Throw exception on disposed RestClient #1967

Merged

Conversation

kendallb
Copy link
Contributor

@kendallb kendallb commented Nov 8, 2022

Throw exception on using a disposed RestClient instance. We should always throw this one as it is pretty fatal so you would not want this to silently show up in the Exception response value.

Description

If you try to use a disposed instance right now, you get a silent exception buried inside HttpClient. With this change, it will throw immediately and cause the user code to fail as this is a pretty fatal problem.

Purpose

This pull request is a:

  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

… pretty fatal so you would not want this to silently show up in the Exception response value.
@stale
Copy link

stale bot commented Jan 7, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jan 7, 2023
@repo-ranger
Copy link

repo-ranger bot commented Jan 7, 2023

⚠️ This issue has been marked wontfix and will be closed in 3 days

@alexeyzimarev alexeyzimarev merged commit ebf23ed into restsharp:dev Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants