In our product we have a REST client base class which ends up doing
all the REST calls to the backend. In it, we currently create a new
RestClient for each REST call, although we do reuse cookies and such,
since they're part of the RestRequest itself. I would prefer to change
it so we have 1 RestClient that is reused across calls, but I'm unable
to find any details on the thread safety of RestClient. The only thing
that I have found that supports that is
http://www.stum.de/2009/12/22/using-restsharp-to-consume-restful-web-services/,
which says "The Client handles all the sending of Requests and can be
shared across the whole application if you want (Don’t take my word
for it, but it looks like it is Thread-safe)." Not very encouraging,
to say the least.
Can anyone confirm or deny that RestClient is thread safe?
Thanks,
Clay