How to consume ASP.NET Web API RC with RestSharp?

As I mentioned in my blog before that ASP.NET Web API will be the next generation of WCF for creating RESTful web service which can be consumed by any platforms or devices supporting HTTP protocol. It is a part of ASP.NET MVC 4 , can be installed on Visual Studio 2010 or Visual Studio 2012 and is currently on Release Candidate version. It’s first time that I try a RC product in my software and I had really a lot of troubles:
– There are breaking changes from Beta version to RC version which causes a lot of things not work anymore.
– The Castle Windsor (an Inversion of Control container) runs unstably with ASP.NET Web Server because of his error “Could not load file or assembly…” and I do have to stop debugging, stop ASP.NET Web Server and start again each time when an exception was thrown or when I stop debugging at any position in source code.
– The Inversion of Control container must be attached with new code when changing from Beta version to RC version.
– Lack of documentation.

Continue reading How to consume ASP.NET Web API RC with RestSharp?