Producing and Consuming Messages using MassTransit and StructureMap
August 26, 2009
I am spiking out right now what it takes to use a Mass Transit as a message bus for handling a simple producer consumer messaging architecture. To be exact I want to see how easy it is to get Mass Transit working using StructureMap for an IoC container. Dovetail uses Inversion of Control extensively to make our code more: testable and able to leap tall buildings, dodge bullets, and all that. Our favorite IoC container is StructureMap. Why? Because it is great and we have two contributors on staff: creator Jeremy Miller and the brainy Josh Flanagan. Getting Started My first step was to grab the Mass Transit trunk from SVN, build it and start up a new solution with three projects: Producer – produces messages. Consumer – consumers messages. Common – code shared between producer and consumer. In this…