RestSharp Timeout not working

Solution (Version 107+)

var options = new RestClientOptions("baseURL") {
    ThrowOnAnyError = true,
    Timeout = 1000  // 1 second - thanks to @JohnMc
};
var client = new RestClient(options);

Older Versions:

to alter the default time out to: 5 seconds – for example – (i.e. 5000 milliseconds):

    var client = new RestClient("BaseUrl");
    client.Timeout = 5000; // 5000 milliseconds == 5 seconds

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)