RestSharp canceling operation

0

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

However, since I use a third-party service, we do not know when this service might be down. And making my requisition, I have no return from them and get caught. I would like to know if in RestSharp I have something like a timeout that if I spend a certain time and do not have the answer it quits that service and returns it on my page.

Has anyone ever been through this? Or something similar?

    
asked by anonymous 25.08.2018 / 22:01

0 answers