Best practices, thread safety, etc.

548 views
Skip to first unread message

Andy Cutright

unread,
Mar 6, 2012, 2:29:15 PM3/6/12
to rest...@googlegroups.com
Hi, 

I'm starting to use the library for a wp7 application. I'm looking for guidelines on best usage, multithreading / thread safety, object instantiation, etc. for the library. The documentation I've found is a bit sparse 


I know the code is the best source for answers and I'll read through the archives for this group. I'm hoping for some responses from folks using the library. Is constructing a RestClient expensive for instance? Is there any connection pooling? Is the RestClient thread safe? Can i process multiple requests with a single rest client concurrently? Those are the sorts of issues I'd like to understand so I can properly architect my network layer. 

Cheers,
Andy 

Andy Cutright

unread,
Mar 6, 2012, 2:31:02 PM3/6/12
to rest...@googlegroups.com

huntert

unread,
Oct 23, 2012, 11:59:34 PM10/23/12
to rest...@googlegroups.com, r.d....@gmail.com
Sorry, bro. I came to this post because I encountered the same situation.
And I found out the bad news, the RestClient is NOT thread-safe.
You can read the link below.
https://groups.google.com/forum/?fromgroups=#!topic/restsharp/X8JPtcfnSlo
The author, John Sheehan, said it's not designed to be thread-safe.

Andy Cutright於 2012年3月7日星期三UTC+8上午3時29分15秒寫道:
Reply all
Reply to author
Forward
0 new messages