Skip to main content

Posts

Showing posts from January, 2013

Reactive Extensions Plugin for Resharper

A quick post to introduce a new Resharper plugin for Visual Studio to hopefully help when writing code using the Reactive Extensions libraries. The background to how I came to developing this plugin is simple - @leeoades , @hamishdotnet & I were looking into a regression bug we introduced where the app completely froze - a classic blocking issue on the UI thread. We knew this because the host for the app (web browser) was complete unresponsive, the app (which happened to be Silverlight) had completely locked up the UI thread, leaving even the browser chrome useless - the only thing left was to kill the process. We do a lot of asynchronous stream processing using Rx and we knew one of the extension method from the Rx libraries was causing synchronization dead lock by scheduling work onto the UI thread. Now we knew the issue wasn't with the actual methods from the Rx libraries but how they were being used. We weren't using an overload for one of the Rx extension method