Here is some code I wrote to give me some experience playing with an OData service, learning more Linq, using my favourite HTTP client library and getting to download mix videos. It will download only the videos related to the tag name that you specify and currently it is set to download the low quality […]
Testing code that uses HttpWebRequest directly, is a real pain. Usually what I have seen people do is create a service interface that hides the real http client behind the interface and then create fake service implementations to actually run their tests against. The annoying part about that solution is that Http client interfaces tend […]
In a recent twitter exchange with Colin Jack I claimed that SELECT {…} FROM […] FOR XML PATH() is pretty much all you need for providing the Reporting side of CQRS. Ok, so maybe I overstated it a tad, but it is a valuable technique. He suggested I blog about it, so I figured even if people […]
This started as a comment on the blog post here, but it got too long. I have two questions for Dion and a few comments. 1) Have you read (not just skimmed a few times) Roy’s dissertation on REST? 2) Have you written both a REST service and a REST client that is in production today? […]
I think the HttpContent class is my favourite part of this library. This class acts as a container for the content that you received or are about to send. Handling returned content When you do make an http request with this library, the body of the response is wrapped inside an HttpContent object. So, when […]
Before I go into any details I thought it would be valuable to give some basic examples of how to use the HTTPClient. Retrieve some HTTP content from an URL Post some content to an Url Authenticated get and if you need to provide some kind of custom authentication scheme you can simply create credential […]
In various forums I a finding myself raving about this new library. I decided that I should write some blog posts on the subject for a few reasons. 1) to convince myself that there is actually some substance to my raving; 2) provide a place to point people to in order to substantiate my infatuation […]
Since the recent PDC09 I have been obsessing over OData and I need to write this post just to get it out of my head. Microsoft has made it obvious that they are taking this protocol very seriously by integrating it into Sharepoint, Visual Studio, RIA Services, PowerPivot, and I expect to see it in […]
I just had a fight with an installation of Sharepoint and it dawned on my what I don’t like about Windows Installer. It is a black box. You click on the file and press next, next, next and magic happens. Personally, I would like to know where files are being put, which registry hives are […]