Get Your Web API Playing Nicely With SignalR on OWIN with Autofac

Niche, right? Yes. But this has caused me a day of headaches so posting here to save anyone else from the pain. WebAPI Say we already have Autofac set-up with your WebAPI. So we have something like this: var builder = new ContainerBuilder(); builder.RegisterApiControllers(Assembly.GetExecutingAssembly()); builder.RegisterAssemblyModules(Assembly.GetExecutingAssembly()); // Register the Autofac middleware FIRST, then the Autofac Web […]

Read More

.NET Distance Model

I actually put this together a while ago but have just realised I never put it up here. The Problem As part of some of the work I’ve been doing over the past year or so, we’ve run into issues dealing with units of distance. The most problematic of these being when an app that […]

Read More