I am attempting to use RestSharp to handle simple GET calls to a web service (I control) from a Windows service (I also control). I am forcing the web service to timeout (by not responding by the timeout set on the request object), to see how it handles that scenario.
I expected it to set the response.ResponseStatus to TimedOut, but it set it to Error. Looking at the source, all WebExceptions are caught (within the Execute method in RestClient.Sync.cs) and the ResponseStatus is set to Error. Should/Could this be TimedOut? A WebException could be inspected to determine if it was a timeout.
Compare to the Async code, which has three references to ResponseStatus.TimedOut.
So my question is, should the sync code have a concept of timeout? Or is the concept of timeout in Async something different I'm not catching onto?