Restsharp canceling the operation

Asked

Viewed 34 times

0

Good afternoon, I have an application that via Restsharp I make a call on the Revenue Service to retrieve the information I need.

However, as I use a third-party service, we do not know when this service may be down. And making my requisition, I get no return from them and it gets stuck. I wonder if in Restsharp I have something like a timeout that if I spend a certain time and do not have the answer it leaves this service and returns on my page.

Has anyone ever been through this? Or something similar?

  • Click [Edit] and post the request snippet, which is easier to return.

  • Have you tried the property Timeout of RestRequest?

  • Thank you all for the reply. That’s right Leandro, spoke a timeout at Restrequest.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.