HttpResponseMessage vs IHttpActionResult


In Web API 2 IHttpActionResult is introduced. Read this post which explains the Web API 2 response types and the benefits of IHttpActionResult Assuming you’ve read the above article it is recommended to use IHttpActionResult. Apart from the benefits of clean code and unit testing the main design argument of using IHttpActionResult is the single... Continue Reading →

Advertisements

Windows Azure Caching


Role Based Caching Windows Azure provides 2 primary role based caching options. Shared caching and Dedicated caching. Shared Caching is defining a portion of the memory of the web or worker role. This does not include additional charges since you’re already paying for the cloud service instance and using the portion of the memory. This... Continue Reading →

ObjectCache – Caching


In the ASP.NET domain all the state mechanisms can be considered as caching, both in the client side (view states, query strings, cookies) and in the server side (application state, session state and the Cache object itself.) You can define the classes and properties as static to get the effective functionality of caching. In ASP.NET... Continue Reading →

Difference between Single and First in C#


In the extension methods Single / SingleOrDefault and First / FirstOrDefault have semantic distinction. Though in many places these methods are being used without the semantic consideration, more often they return the expected results. This behavior makes this misuse more common. Both the Single and First methods have an accompanying helper method named as xxOrDefault... Continue Reading →

Powered by WordPress.com.

Up ↑

%d bloggers like this: