Processing Items on Background Thread
(1 comments, 18 posts)
This user hasn't shared any profile information
Posts by Stewart Ritchie
Instead of using the standard MVC routing approach, I needed full control over route construction. In particular, I need to be able to supply routing names for a group of related scenarios. Gets replaced with: Later, I can modify this example to supply the default BusinessArea value.
Here’s an implementation of InSessionScope(). I fall back to Singleton scoping when session isn’t available (mainly to make testing easier): If we need to synchronize session between MVC and Web API, we need to add the following to the Global.asax:
We need to replace Web Api’s default controller activator with a custom implementation that uses the Ninject kernel. This happens in the Ninject bootstrapper code: The custom controller activator:
My starting point for this exercise was to apply a simple racing-rank to a list of integer values. Here’s my list… 8, 4, 5, 6, 6, 3, 5, 9, 10, 1, 0, 6. And this is my expectation… 0 = 1st 1 = 2nd 3 = 3rd 4 = 4th 5 = 5th (there are two items in 5th place) 6 = 7th (there are three items in 7th [...]
Annoyingly, Microsoft updates dumped the the software pack files for one of its updates on my removeable drive recently. Subsequently, I was having all sorts of issues trying to delete (take ownership) of the file. Command-line did the trick… takeown /f <foldername> /r /d y icacls <foldername> [...]
I use Moq for testing. This framework (along with others) uses Castle.Core to create it’s proxy instances. A problem you run into is trying to assert for specific exceptions thrown from the proxy’s constructor, as Castle likes to wrap these in a Reflection.TargetInvocationException. In order to get [...]
I’ve adopted Trello at work as a general purpose organisational tool for our team, and we’ve been using it for a little over 1 week now. It’s a beautifully simple execution of the ‘list’, and has all the features you’d want from a basic online organisational [...]
I loved this official Microsoft site when it appeared earlier this year. I am still being regularly asked to build web applications that are backwards compatible with IE6… please… for the love of all you hold sacred… stop using IE6!