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

Missing cancellation support in the .NET API #235

Open
malthuis opened this issue Dec 14, 2024 · 0 comments
Open

Missing cancellation support in the .NET API #235

malthuis opened this issue Dec 14, 2024 · 0 comments

Comments

@malthuis
Copy link

Expected behavior:

I can pass a CancellationToken into an async method call, for example:

CardPreAuthorizationDTO result = await mangoPayApiService.Api.CardPreAuthorizations.CreateAsync(preAuth, cancellationToken);

This should, if the call gets canceled, throw an OperationCanceledException

Actual behavior:

I cannot pass it and have to use:

CardPreAuthorizationDTO result = await mangoPayApiService.Api.CardPreAuthorizations.CreateAsync(preAuth);

Also this throws a TimeoutException after 1.5 seconds.

Also, the MangoPay production API seems to be very slow since a couple of days so there errors actually occur on a daily basis at the moment.

Could you please have a look at the performance issues and consider adding cancellation support?

Thanks in advance.

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

No branches or pull requests

1 participant