adyen-dotnet-api-library icon indicating copy to clipboard operation
adyen-dotnet-api-library copied to clipboard

Allow to use HttpClient instead of HttpWebRequest

Open kipwoker opened this issue 4 years ago • 11 comments

Summary

HttpWebRequest produces performance issues.

Take a look at these articles for more information:

  • https://josef.codes/you-are-probably-still-using-httpclient-wrong-and-it-is-destabilizing-your-software/
  • https://makolyte.com/csharp-switch-from-using-httpwebrequest-to-httpclient/
  • https://www.aspnetmonsters.com/2016/08/2016-08-27-httpclientwrong/

Proposed changes:

  • Allow passing user's HttpClient that could be created through the HttpClientFactory for ASP.NET Core apps or manually for others
  • Rename HttpUrlConnectionClient to HttpWebRequestWrapper and use this implementation for backward compatibility

Fixed issue: #475

kipwoker avatar Jul 12 '21 15:07 kipwoker

This pull request introduces 4 alerts and fixes 1 when merging 38207d48632c4594dd1718fcfdfefd5d50aa108a into 714f9d1ed0736760d882615be39b68b1563e0bd3 - view on LGTM.com

new alerts:

  • 2 for Useless assignment to local variable
  • 2 for Missing Dispose call on local IDisposable

fixed alerts:

  • 1 for Missing Dispose call on local IDisposable

lgtm-com[bot] avatar Jul 12 '21 15:07 lgtm-com[bot]

This pull request introduces 1 alert and fixes 1 when merging 6cadeeb93f405e97f6b99cb17177cc25f47013f3 into 714f9d1ed0736760d882615be39b68b1563e0bd3 - view on LGTM.com

new alerts:

  • 1 for Missing Dispose call on local IDisposable

fixed alerts:

  • 1 for Missing Dispose call on local IDisposable

lgtm-com[bot] avatar Jul 12 '21 15:07 lgtm-com[bot]

@AlexandrosMor almost a month passed. Can anybody take a look at the PR, please? :)

kipwoker avatar Aug 03 '21 09:08 kipwoker

@kipwoker We are currently busy as we maintain all the repos in the Adyen's github page. This pr needs extra attention as modifies core functionality. It is in our todo list :)

AlexandrosMor avatar Aug 03 '21 10:08 AlexandrosMor

This pull request introduces 1 alert and fixes 1 when merging 569e7dc4a0c7d971ade105c2557e1eb049b66915 into d359dd759b11d77731ccd8a7b4e3a0c680547e99 - view on LGTM.com

new alerts:

  • 1 for Missing Dispose call on local IDisposable

fixed alerts:

  • 1 for Missing Dispose call on local IDisposable

lgtm-com[bot] avatar Aug 17 '21 14:08 lgtm-com[bot]

This pull request introduces 1 alert and fixes 1 when merging d5357ccd3869cabaee97701ddbcc969114f8779c into d359dd759b11d77731ccd8a7b4e3a0c680547e99 - view on LGTM.com

new alerts:

  • 1 for Missing Dispose call on local IDisposable

fixed alerts:

  • 1 for Missing Dispose call on local IDisposable

lgtm-com[bot] avatar Aug 20 '21 09:08 lgtm-com[bot]

This pull request introduces 1 alert and fixes 1 when merging cc79fb6014789819ec0aa1ab2d5d0a37e9590d89 into d359dd759b11d77731ccd8a7b4e3a0c680547e99 - view on LGTM.com

new alerts:

  • 1 for Missing Dispose call on local IDisposable

fixed alerts:

  • 1 for Missing Dispose call on local IDisposable

lgtm-com[bot] avatar Sep 03 '21 12:09 lgtm-com[bot]

This pull request introduces 1 alert and fixes 1 when merging c420d55774ac4cf47da76e4a55295dc5414d7860 into f114b179e35c799c661064a762cb845c4ad57eff - view on LGTM.com

new alerts:

  • 1 for Missing Dispose call on local IDisposable

fixed alerts:

  • 1 for Missing Dispose call on local IDisposable

lgtm-com[bot] avatar Sep 06 '21 08:09 lgtm-com[bot]

This seems like an important improvement. Is there anything we can do to help get it merged (testing etc.)?

jonekdahl avatar Jan 12 '22 09:01 jonekdahl

@AlexandrosMor Would it be possible to pick this up again? We would really benefit from this change.

Roeland54 avatar Aug 16 '22 08:08 Roeland54

@Roeland54 Thank you for the message, the issue is that we are in the process to automate some parts of the library so we are putting some effort on that. Replacing the client and also support rest is in our plans but we are still busy. I hope in the coming month to be able to pick this one

AlexandrosMor avatar Aug 16 '22 08:08 AlexandrosMor

We are currently working on the new http client in this pr #690 We would like to thank you for the help @kipwoker

kind regards, Alexandros Adyen

AlexandrosMor avatar Dec 29 '22 13:12 AlexandrosMor