Page 10

Quick tip - Avoid 'async void'

When developing a Web API application recently with an AngularJS front end, I made a basic mistake and then lost 2 hours of my life trying to figure out what was causing the problem … async void . Its pretty common nowadays to use tasks to improve performance/scalability when writing a Web API controller. Take the following code: At a high level, when is executed the call will be moved off onto another thread and the execution of the method will only continue once the operation is complete…

Continue reading

5 AutoMapper tips and tricks

AutoMapper is a productivity tool designed to help you write less repetitive code mapping code. AutoMapper maps objects to objects, using both convention and configuration. AutoMapper is flexible enough that it can be overridden so that it will work with even the oldest legacy systems. This post demonstrates what I have found to be 5 of the most useful, lesser known features. Tip: I wrote unit tests to demonstrate each of the basic concepts. If you would like to learn more about unit testing…

Continue reading

How to create your own ASP .NET MVC model binder

Model binding is the process of converting POST data or data present in the Url into a .NET object(s). ASP .NET MVC makes this very simple by providing the DefaultModelBinder . You’ve probably seen this in action many times (even if you didn’t realise it!), but did you know you can easily write your own? A typical ASP .NET MVC Controller You’ve probably written or seen code like this many hundreds of times; Where did Id come from? It probably came from one of three sources; the Url ( ), the…

Continue reading

Should I get certified?

The value of Microsoft certifications has split opinion for years, and both camps feel very passionate about their side of the argument. In this post I’ll try and look constructively at the value of Microsoft certifications, so you can make the decision for yourself. I’m specifically talking about Microsoft developer certifications here, but the concepts/points could likely be applied to any certifying body. 1. What are the current Microsoft Certification paths (for developers)? There is a route…

Continue reading

How to pass Microsoft Exam 70-487 (Developing Microsoft Azure and Web Services) in 30 days

Before you continue reading this blog post, you need to be aware of the following; This is not a “quick fix” or an “easy solution”. I have not discovered some secret formula to guarantee you pass with 100% marks every time. The exam is genuinely challenging and the only way you are going to pass is by working hard! You will not find any brain dumps here! If you’re afraid of working hard to achieve your goals, you best leave now … Still Here? Congratulations, you are taking your first steps…

Continue reading