Monthly Archives: October 2012

WinRT non-reentrant async timer ticks – Part II of approaching unit testing in WinRT

In the previous postI highlighted the issues with running WinRT tests on your build server and how we made our life a lot simpler by structuring our solution so we can test using standard .net testing frameworks (much like you … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

How we approached WinRT, solution structure and unit testing

I’ve written about a few of the things we’ve implemented in our Windows 8 app but not much about how we actually structured our code or how we approached unit testing. First thing to say is we are an agile … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

C# 5 async – Limiting concurrent calls to the server on user interactions

In windows 8 everything is unashamedly async – which is a good thing for responsive apps. What’s even better is it comes with the release of C# 5 with all the syntax goodness to make async something much more palatable … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

ICommand implementation with a little bit of async in WinRT

So the RelayCommand or DelegateCommand (whichever name you prefer) is a well known chap.  We created an AsyncRelayCommand which essentially disables the command while an async action is running.  This is useful because commands may call services (which are async) … Continue reading

Posted in Uncategorized | Tagged , , | 7 Comments

Retrying with .net WebAPI client

We’ve been building a prototype Windows 8 dashboard to show management information on our Azure application. One thing we were conscious of was unreliable mobile network connections so we wanted to make some attempt to retry if we get a … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Handling gestures in C# WinRT using a behaviour

We’re using the WinRTBehaviors as WinRT doesn’t have them built in.  Behaviours (with a u sorry, I am English) are great and I’m really pleased that someone has ported them across – one less thing for us to do – … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

Machine.Specifications (mspec) only output errors

Our team is very command line oriented, we’ll often run our test suit from the command line.  A typical workflow would be to commit, pull build then push (assuming we didn’t break the build!). You’ll notice that when you run … Continue reading

Posted in Uncategorized | Tagged | Leave a comment