Recent Posts All Categories Subscribe to RSS Feed

  • Windows Azure Service Bus is a great way to achieve cross boundary communications.  It provides powerful features which we are not going to discuss in this post.  However, we will focus on a small scenario revolving around Service Bus Queues, ACS, and dirty players. Clemens Vasters posted a video explaining how to secure Service Bus... read more
  • Recently Wade Wegner and his team, release the NuGet version of their Windows Azure Toolkit for Windows Phone with lots of improvements including one of the most important, modularization of all the things that the toolkit provides. In this post, I will focus on the new WindowsAzure.Storage.Proxy NuGet package, which provides the Windows Azure Proxies... read more
  • Getting Started: An ASP.NET MVC site that lists customers Download all the code here. This section is the vanilla MVC to set the stage for talking about AJAX and JSON payloads later on.  This should all be very familiar to ASP.NET MVC developers. 1. First, wel add a very simple customer model. public class Customer... read more
  • Testing MVC Controllers with HttpContext

    Published by malzua on March 9th, 2012 8:29 pm under C#, MVC, Testing

    No Comments
    So there I was… having fun, writing unit tests, when suddenly the code I’m testing throws: ouch… the Controller was working just fine. What is this “Response” and why is it ‘null’ when I’m doing unit tests? Easy, Response is a property of type HttpResponseBase, from the Controller class, which holds the data of the ... read more
  • Update (03/05/2012): A ‘Date and time formatting sample’ that showcases the DateTimeFormatter class has been published as part of the Windows Samples Gallery. You can download it here. The DateTimeFormatter class from the Windows.Globaliztion.DateTimeFormatting namespace provides convenient date and time formatting methods. However, I had some difficulties while trying to define my own date format... read more
  • Delegates Now and Then

    Published by malzua on February 28th, 2012 8:07 pm under C#, Delegates

    No Comments
    A Delegate is a strongly-typed pointer to other method. In C#, all delegates are Multicast by default, which means that a single Delegate can point to many other methods. Their main purpose in the .NET world, is to provide Callback functionality and Asynchronous Event Handling. I won’t cover the latter in this article. Callback functionality,... read more
  • Windows Azure Guidance Part 3: *Hybrid scenario*

    Published by ajezierski on February 23rd, 2012 11:26 am under Windows Azure

    No Comments
    During the last few months we have been working on the third part of the Windows Azure Guidance series that revolves around integrating cloud and on premise applications. The guide explains how the fictitious company TreyResearch achieves the objective of moving some of the applications to the cloud, while hosting others on premise and the... read more
  • Using Dynamics to consume Anonymous types

    Published by malzua on February 22nd, 2012 5:24 pm under C#, Dynamics, JSON, Testing

    No Comments
    What is a Dynamic? Dynamic is a C# keyword for declaring variables whose methods and properties are resolved at runtime. Regardless of what is inferred at runtime, you can call any method or property and the code will compile. If these methods or properties are not found at runtime, you will get an exception. Example... read more
  • Effective StyleCop

    Published by Geoff Cox on February 13th, 2012 4:45 pm under Practice of Software Development

    No Comments
    In case you aren’t familiar with StyleCop, it is a C# source code analyzer that “enforces a set of style and consistency rules”.  I applaud StyleCop’s goals toward improving code quality, readability, maintainability, and preventing reformatting check in wars between developers.  However, when the entire set of rules are enabled StyleCop has a significant detrimental... read more
  • Deploying your database from the command line

    Published by Martin Cabral on February 7th, 2012 10:01 am under database

    No Comments
    The other day I was ask to introduce the Web Deploy Tool to automate the deploying of our deliveries in our QA environment. Web Deploy by itself is a great tool, has some pitfalls when it comes to configuring it correctly, but that’s a story for another post One of the many abilities provided by... read more